Bool Filter - Does "should" has an effect if "must" is defined?


(maho) #1

Hi,

in Lucene, filter doesn't affect the computation of the score of the
non-filtered documents.
So if i use a bool filter with "should" it should have no effect if I
also use "must".

Is that correct?


(Shay Banon) #2

Yes, if its a filter.

On Mon, Sep 26, 2011 at 2:49 PM, maho mathias.hodler@gmail.com wrote:

Hi,

in Lucene, filter doesn't affect the computation of the score of the
non-filtered documents.
So if i use a bool filter with "should" it should have no effect if I
also use "must".

Is that correct?


(maho) #3

Thank you.

I was little bit confused, because in the example all three bool
operators are used: http://www.elasticsearch.org/guide/reference/query-dsl/bool-filter.html.

On 2 Okt., 09:57, Shay Banon kim...@gmail.com wrote:

Yes, if its a filter.

On Mon, Sep 26, 2011 at 2:49 PM, maho mathias.hod...@gmail.com wrote:

Hi,

in Lucene, filter doesn't affect the computation of the score of the
non-filtered documents.
So if i use a bool filter with "should" it should have no effect if I
also use "must".

Is that correct?


(system) #4