lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grant Ingersoll (JIRA)" <>
Subject [jira] Commented: (SOLR-1566) Allow components to add fields to outgoing documents
Date Thu, 12 Aug 2010 02:01:17 GMT


Grant Ingersoll commented on SOLR-1566:

I know this sounds simple and maybe I'm missing something, but why can't we have a simple
data structure that is attached to the SolrResponse and then in the ResponseWriters, (pretty
much where it adds the Score onto the item) it looks up the document in the data structure
(it's likely a Map where the key is the doc id and the value is a list of values to add to
the doc) and then adds the fields, optionally marking them as "pseudo" or annotative fields?
 I can't imagine the memory usage would get out of hand unless you are retrieving a large
number of docs (but then you have memory issues anyway) and it is short-lived so it likely
never proceeds out of Eden memory anyway.  Everybody already has access to the SolrResponse
to some extent.  For those who want, we could likely make it a configuration item such that
even the holding Map isn't created, but that likely isn't too big of a deal.


> Allow components to add fields to outgoing documents
> ----------------------------------------------------
>                 Key: SOLR-1566
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Noble Paul
>             Fix For: Next
>         Attachments: 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.
You can reply to this email to add a comment to the issue online.

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

View raw message