[ 
https://issues.apache.org/jira/browse/SOLR-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Noble Paul updated SOLR-1566:
-----------------------------

    Attachment: SOLR-1566.patch

idea as a patch.

Any component must be able to add fields to the document. There are two ways to 
do it. Add the value directly or add a component (DocFieldSource) which will 
add the value just in time before the document is written out. The component 
can choose to add the values based on the other values or it can add some 
metadata to the document


There is a new class SolrDocumentSlice extends DocSlice . The requirement is 
that all responsewriters must use  SolrDocumentSlice#getSolrDocumentIterator() 
to write out documents.

I have not made the necessary changes to the response writers yet. I wish to 
get the feedback from others on the approach before going ahead further

> Allow components to add fields to documents
> -------------------------------------------
>
>                 Key: SOLR-1566
>                 URL: https://issues.apache.org/jira/browse/SOLR-1566
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Noble Paul
>             Fix For: 1.5
>
>         Attachments: SOLR-1566.patch
>
>
> Currently it is not possible for components to add fields to documents which 
> are not in the the stored fields of the document.  This makes it cumbersome 
> to add computed fields/metadata .

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to