[ https://issues.apache.org/jira/browse/SOLR-1584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shalin Shekhar Mangar updated SOLR-1584: ---------------------------------------- Fix Version/s: 1.5 > 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 > > 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.