kotman12 opened a new issue, #16997:
URL: https://github.com/apache/lucene/issues/16997

   ### Description
   
   It is possible to extend the mechanics of the multi-pass term filtered 
pre-searcher (`MTFP`) to
   more optimally handle _certain_ negative queries. Conjunctions of negative 
queries are especially
   ripe for this kind of optimization. The main idea is to index these 
`-field:value` sub-queries
   as special terms managed by the pre-searcher. Today, a query is indexed as a 
disjunction of terms,
   and a document selects it by containing _any_ of them. Negated terms can be 
added to that
   disjunction as a "negative disjunct", which a document satisfies by 
containing _none_ of them.
   
   A conjunction of negative queries fits into a single negative disjunct. A 
disjunction of negative
   queries does not fall out as neatly, as each of its branches needs a 
negative disjunct of its own,
   though handling them is also possible, within limits. In any case, we can 
efficiently pre-search
   negative queries by double negation; negating the special negative disjunct 
fields.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to