lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From baris.ka...@oracle.com
Subject Re: how to find out each score contribution from booleanquery components
Date Wed, 26 Jun 2019 17:06:50 GMT
Sure, here is the query plan: (i cant run explain plan as it does not 
give me anything)

[+streetDFLT:maink~2 (streetDFLT:"maine")^0.35, +cityDFLT:nasua~2 
(cityDFLT:"nasuh")^0.35, ++regionDFLT:"new-hampshire" 
(regionDFLT:"new-hammpshire")^0.98, ++countryDFLT:"united" 
(countryDFLT:"uniten")^0.42000002 +countryDFLT:"states" 
(countryDFLT:"statesir")^0.56]


explain plan gives:

Explanation expl = is.explain(booleanQuery.build(), 10);
System.out.println(expl);

This prints:

0.0 = Failure to meet condition(s) of required/prohibited clause(s)
   0.0 = no match on required clause (+regionDFLT:new-hampshire 
(regionDFLT:new-hammpshire)^0.98)
     0.0 = Failure to meet condition(s) of required/prohibited clause(s)
       0.0 = no match on required clause (regionDFLT:new-hampshire)
         0.0 = no matching term
   0.0 = no match on required clause (+countryDFLT:united 
(countryDFLT:uniten)^0.42000002 +countryDFLT:states 
(countryDFLT:statesir)^0.56)
     0.0 = Failure to meet condition(s) of required/prohibited clause(s)
       0.0 = no match on required clause (countryDFLT:united)
         0.0 = no matching term
       0.0 = no match on required clause (countryDFLT:states)
         0.0 = no matching term


Best regards


On 6/26/19 12:48 PM, Atri Sharma wrote:
> It depends a lot on the actual clauses (whether they are SHOULD, MUST,
> MUST_NOT), each query’s type (phrase, term etc).
>
> Could you post your query and the explain plan of IndexSearcher post the
> rewrite?
>
> On Wed, 26 Jun 2019 at 6:46 PM, <baris.kazar@oracle.com> wrote:
>
>> Hi,-
>>
>>    how can one find out each score contribution from booleanquery
>> components?
>>
>> Best regards
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>> --
> Regards,
>
> Atri
> Apache Concerted
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message