lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mariusz Droździel (Commented) (JIRA) <j...@apache.org>
Subject [jira] [Commented] (SOLR-2689) !frange with query($qq) sets score=1.0f for all returned documents
Date Fri, 10 Feb 2012 10:59:59 GMT

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

Mariusz Droździel commented on SOLR-2689:
-----------------------------------------

I tried this alternative notation but it doesn't produce any expected results for me either.
I can specify arbitrary "u" and I will still get the same results. If I specify "l" (regardless
which value) I will get zero results. Am I running into another issue I am not aware of? If
I use the notation with query($) I am getting scores at 1.0f, just like the original poster...

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


Mime
View raw message