lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Uwe Schindler <...@thetaphi.de>
Subject Re: Lucene 5.2.1 score for MUST_NOT query
Date Sun, 04 Aug 2019 18:33:15 GMT
In short: As it matches nothing, it cannot modify the score. Scores of documents not excluded
are not modified, so it behaves like zero.

In short: it's the opposite of FILTER clauses.

Uwe

Am August 4, 2019 6:26:29 PM UTC schrieb Atri Sharma <atri@apache.org>:
>MUST_NOT represents a clause which must not match against a document in
>order for it to be qualified as a hit (think of SQL’s NOT IN).
>
>MUST_NOT clauses are used as filters to eliminate candidate documents.
>
>On Sun, 4 Aug 2019 at 23:11, Claude Lepere <claudelepere@gmail.com>
>wrote:
>
>> Hello!
>>
>> What score of a hit in response to a query that begins with the
>clause
>> MUST_NOT?
>> Is it 0 or something else?
>> What does it mean?
>> How is it calculated?
>>
>> Thank you in advance. Claude Lepère
>>
>-- 
>Regards,
>
>Atri
>Apache Concerted

--
Uwe Schindler
Achterdiek 19, 28357 Bremen
https://www.thetaphi.de
Mime
  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message