[ 
https://issues.apache.org/jira/browse/SOLR-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13004636#comment-13004636
 ] 

Ryan McKinley commented on SOLR-1566:
-------------------------------------

Here is a different approach that allows the whole Document to be transformed 
rather then just letting you add fields to the response.  The basic interface 
is now:
{code:java}
public abstract class DocTransformer
{
  public abstract void transform(SolrDocument doc, int docid, Float score);
}
{code}


Some notes about the patch -- many tests fail because this does not support the 
old xml style where multivalued fields show up as a single item.

> Allow components to add fields to outgoing documents
> ----------------------------------------------------
>
>                 Key: SOLR-1566
>                 URL: https://issues.apache.org/jira/browse/SOLR-1566
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Noble Paul
>            Assignee: Grant Ingersoll
>             Fix For: Next
>
>         Attachments: SOLR-1566-DocTransformer.patch, SOLR-1566-gsi.patch, 
> SOLR-1566-rm.patch, SOLR-1566-rm.patch, SOLR-1566-rm.patch, 
> SOLR-1566-rm.patch, SOLR-1566-rm.patch, SOLR-1566.patch, SOLR-1566.patch, 
> SOLR-1566.patch, SOLR-1566.patch
>
>
> Currently it is not possible for components to add fields to outgoing 
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to