lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Male (JIRA)" <>
Subject [jira] Commented: (SOLR-1298) FunctionQuery results as pseudo-fields
Date Wed, 23 Dec 2009 15:46:29 GMT


Chris Male commented on SOLR-1298:

Just a couple of thoughts about the implementation of this:

bq. should work with highlighting... this way people don't have to store large text fields
if they already have them in another system. I'm not sure if SolrIndexSearcher is the right
place for this or not though - perhaps its document() method should stick to just the stored

>From what I can see the Highlighter pulls documents from the SolrIndexSearcher as well
through document() so the patch should already support highlighting.  If we move the process
away from the SolrIndexSearcher, which I understand the case for, then we need to move all
components away from using document(), otherwise the same document could be represented in
different ways depending on whether its retrieved via the #document() one time or via whatever
way we build.  Equally, we need custom components to do the same.

I do like the idea of changing to a DocumentMutator which is given a context and is able to
add/remove fields.  This will then work seamlessly with having the values inline with the

Should I go ahead and mockup a patch for something like this?

> FunctionQuery results as pseudo-fields
> --------------------------------------
>                 Key: SOLR-1298
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 1.5
>         Attachments: SOLR-1298-FieldValues.patch, SOLR-1298.patch
> It would be helpful if the results of FunctionQueries could be added as fields to a document.

> Couple of options here:
> 1. Run FunctionQuery as part of relevance score and add that piece to the document
> 2. Run the function (not really a query) during Document/Field retrieval

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

View raw message