Re: BooleanQuery rewrite optimization

2016-08-13 Thread Adrien Grand
The explanation makes sense, I think you're right. Even though I don't think this optimization would be used often, it would certainly help performance when it is used. Le sam. 13 août 2016 à 12:21, Spyros Kapnissis a écrit : > Ok, I had some time to look a bit further into it. It seems that ind

Re: BooleanQuery rewrite optimization

2016-08-13 Thread Spyros Kapnissis
Ok, I had some time to look a bit further into it. It seems that indeed a SHOULD clause with FILTER is equivalent with an AND clause with a minShouldMatch of -1 in terms of both the number of results and score. My reasoning goes like this: given:- a single clause both as a SHOULD and a FILTER is