lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan McKinley (JIRA)" <>
Subject [jira] Commented: (SOLR-1566) Allow components to add fields to outgoing documents
Date Tue, 08 Mar 2011 21:31:59 GMT


Ryan McKinley commented on SOLR-1566:

I just added a path that *almost* works.  Rather then bang my head on it some more, i think
some feedback would be great.

Originally, I hoped to clean up the ResponeWriter mess, and make a single place that would
'augment' docs -- but there are *so* many micro optimizations for each format that approach
seems difficult.  

Instead I went for an approach the moves Set<String> returnFields to a class that knows
more then just a list of strings.  This holds an augmenter that can add to SolrDocument or
write to the response.

Now you can make a request like:


and get back a response
          "SATA 3.0Gb/s, NCQ",
          "8.5ms seek",
          "16MB cache"],


right now, _docid_ just returns the lucene docid, and _shard_ returns a constant string saying

The distributed tests (BasicDistributedZkTest, and TestDistributedSearch) don't pass, but
everything else does.  I will wait for general feedback before trying to track that down.

Also looking at SOLR-1298,  I would love some feedback on how we could read function queries
and ideally used ones that are already defined elsewhere.

feedback welcome!

> Allow components to add fields to outgoing documents
> ----------------------------------------------------
>                 Key: SOLR-1566
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Noble Paul
>            Assignee: Grant Ingersoll
>             Fix For: Next
>         Attachments: 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,
> 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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message