lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SOLR-1584) setIncludeScore is added to the "FL" field instead of being concated
Date Thu, 27 May 2010 23:21:37 GMT

     [ https://issues.apache.org/jira/browse/SOLR-1584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hoss Man updated SOLR-1584:
---------------------------

    Fix Version/s: 3.1
                   4.0


Correcting Fix Version based on CHANGES.txt, see this thread for more details...

http://mail-archives.apache.org/mod_mbox/lucene-dev/201005.mbox/%3Calpine.DEB.1.10.1005251052040.24672@radix.cryptio.net%3E

> setIncludeScore is added to the "FL" field instead of being concated
> --------------------------------------------------------------------
>
>                 Key: SOLR-1584
>                 URL: https://issues.apache.org/jira/browse/SOLR-1584
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 1.4
>            Reporter: Asaf Ary
>            Priority: Minor
>             Fix For: 1.5, 3.1, 4.0
>
>         Attachments: SOLR-1584.patch
>
>
> The current implementation of setIncludeScore(boolean) *adds* the value "score" to the
FL parameter.
> This causes a problem when using the setFields followed by include score.
> If I do this:
> setFields("*");
> setIncludeScore(true);
> I would expect the outcome to be "fl=*,score"
> Instead the outcome is: "fl=* &fl=score" which fails to use the score field as FL
is not a multi-valued field.
> The current implementation in the SolrJ SolrQuery object is:
> add("fl", "score")
> instead it should be:
> set("fl", get("fl") + ",score")
> obviously not as simplistic as that, but you catch my drift...

-- 
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message