You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Viral Gandhi <vi...@gmail.com> on 2020/10/06 00:15:13 UTC

BlockMaxConjunctionScorer for Occur.FILTER query clauses

Hello,

I am trying to utilize Block Max WAND optimization. During testing,
BooleanQuery that I passed to IndexSearcher.seach() had multiple clauses
and all of them were of Occur.FILTER type. I noticed that when queries do
not have Occur.MUST clauses, BlockMaxConjunctionScorer is not created for
those clauses.

Does anyone know why WAND optimization does not apply for Occur.FILTER
clauses?

Thanks,
Viral Gandhi

Re: BlockMaxConjunctionScorer for Occur.FILTER query clauses

Posted by Viral Gandhi <vi...@gmail.com>.
Thank you for the explanation, David. This makes sense.

- Viral

On Wed, 7 Oct 2020 at 12:54, David Smiley <ds...@apache.org> wrote:

> Hi.  Block Max WAND is an optimization that can skip docs based on score
> thresholds with some hints in the index.  If there are no MUST/SHOULD
> clauses in the boolean query, then there is no score.
>
> ~ David Smiley
> Apache Lucene/Solr Search Developer
> http://www.linkedin.com/in/davidwsmiley
>
>
> On Mon, Oct 5, 2020 at 8:15 PM Viral Gandhi <vi...@gmail.com>
> wrote:
>
>> Hello,
>>
>> I am trying to utilize Block Max WAND optimization. During testing,
>> BooleanQuery that I passed to IndexSearcher.seach() had multiple clauses
>> and all of them were of Occur.FILTER type. I noticed that when queries do
>> not have Occur.MUST clauses, BlockMaxConjunctionScorer is not created for
>> those clauses.
>>
>> Does anyone know why WAND optimization does not apply for Occur.FILTER
>> clauses?
>>
>> Thanks,
>> Viral Gandhi
>>
>

Re: BlockMaxConjunctionScorer for Occur.FILTER query clauses

Posted by David Smiley <ds...@apache.org>.
Hi.  Block Max WAND is an optimization that can skip docs based on score
thresholds with some hints in the index.  If there are no MUST/SHOULD
clauses in the boolean query, then there is no score.

~ David Smiley
Apache Lucene/Solr Search Developer
http://www.linkedin.com/in/davidwsmiley


On Mon, Oct 5, 2020 at 8:15 PM Viral Gandhi <vi...@gmail.com> wrote:

> Hello,
>
> I am trying to utilize Block Max WAND optimization. During testing,
> BooleanQuery that I passed to IndexSearcher.seach() had multiple clauses
> and all of them were of Occur.FILTER type. I noticed that when queries do
> not have Occur.MUST clauses, BlockMaxConjunctionScorer is not created for
> those clauses.
>
> Does anyone know why WAND optimization does not apply for Occur.FILTER
> clauses?
>
> Thanks,
> Viral Gandhi
>