Mailing List Archive

Lucene 5.2.1 score for MUST_NOT query
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
Re: Lucene 5.2.1 score for MUST_NOT query [ In reply to ]
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
Re: Lucene 5.2.1 score for MUST_NOT query [ In reply to ]
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