[ https://issues.apache.org/jira/browse/SOLR-2689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hoss Man resolved SOLR-2689. ---------------------------- Resolution: Not A Problem Fix Version/s: (was: 3.5) (was: 4.0) resolving as a non-issue ... things are working as advertised, and there is an alternate query structure that will produce the same scoring + filtering that seems to be desired. > !frange with query($qq) sets score=1.0f for all returned documents > ------------------------------------------------------------------ > > Key: SOLR-2689 > URL: https://issues.apache.org/jira/browse/SOLR-2689 > Project: Solr > Issue Type: Bug > Components: search > Affects Versions: 3.4 > Reporter: Markus Jelsma > > Consider the following queries, both query the default field for 'test' and > return the document digest and score (i don't seem to be able get only score, > fl=score returns all fields): > This is a normal query and yields normal results with proper scores: > {code} > q=test&fl=digest,score > {code} > {code} > <result name="response" numFound="227763" start="0" maxScore="4.952673"> > − > <doc> > <float name="score">4.952673</float> > <str name="digest">c48e784f06a051d89f20b72194b0dcf0</str> > </doc> > − > <doc> > <float name="score">4.952673</float> > <str name="digest">7f78a504b8cbd86c6cdbf2aa2c4ae5e3</str> > </doc> > − > <doc> > <float name="score">4.952673</float> > <str name="digest">0f7fefa6586ceda42fc1f095d460aa17</str> > </doc> > {code} > This query uses frange with query() to limit the number of returned > documents. When using multiple search terms i can indeed cut-off the result > set but in the end all returned documents have score=1.0f. The final result > set cannot be sorted by score anymore. The result set seems to be returned in > the order of Lucene docId's. > {code} > q={!frange l=1.23}query($qq)&qq=test&fl=digest,score > {code} > {code} > <result name="response" numFound="227763" start="0" maxScore="1.0"> > − > <doc> > <float name="score">1.0</float> > <str name="digest">c48e784f06a051d89f20b72194b0dcf0</str> > </doc> > − > <doc> > <float name="score">1.0</float> > <str name="digest">7f78a504b8cbd86c6cdbf2aa2c4ae5e3</str> > </doc> > − > <doc> > <float name="score">1.0</float> > <str name="digest">0f7fefa6586ceda42fc1f095d460aa17</str> > </doc> > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org