[ 
https://issues.apache.org/jira/browse/LUCENE-8899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16877154#comment-16877154
 ] 

Atri Sharma commented on LUCENE-8899:
-------------------------------------

The way I am thinking of this is by using the fact that 
MultiTermQueryConstantScoreWrapper will always convert to a BooleanQuery with 
each clause as SHOULD. So it should be a simple matter to use that logic. The 
main change will be introduction of a new TermsEnum implementation which can 
filter the input terms based on a filter built from the terms list given in the 
query.

 

Does this seem like a reasonable approach?

> Implementation of MultiTermQuery for ORed Queries
> -------------------------------------------------
>
>                 Key: LUCENE-8899
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8899
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Atri Sharma
>            Priority: Major
>
> While working on multi range queries, I realised that it would be good to 
> specialize for cases where all clauses in a query are ORed together. 
> MultiTermQuery springs to mind, when all terms are basically disjuncted.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to