You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Grant Ingersoll (JIRA)" <ji...@apache.org> on 2009/12/13 12:47:18 UTC

[jira] Commented: (SOLR-1298) FunctionQuery results as pseudo-fields

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

Grant Ingersoll commented on SOLR-1298:
---------------------------------------

Dang, you know it's bad when you wake up in the morning and the first thing that comes into your head is what the interface should look like for some new feature in Solr.  

Alas, having just finished SOLR-1297, I think we should simply make the &fl parameter be able to parse functions and, if need be, they can be materialized/executed as they are being retrieved by the Writer (using SOLR-1650 if implemented).

Thus, the interface for this would be:
{code}
&fl=sum(x, y),id,a,b,c,score
{code}
or
{code}
&fl=id,sum(x, y),score
{code}
{code}
&fl=*,sum(x, y),score
{code}

So, the output would be:
{code}
...
<str name="id">foo</str>
<float name="sum(x,y)">40</float>
<float name="score">0.343</float>
...
{code}



> FunctionQuery results as pseudo-fields
> --------------------------------------
>
>                 Key: SOLR-1298
>                 URL: https://issues.apache.org/jira/browse/SOLR-1298
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Grant Ingersoll
>            Priority: Minor
>             Fix For: 1.5
>
>
> 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.