lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrien Grand (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LUCENE-6360) TermsQuery should rewrite to a ConstantScoreQuery over a BooleanQuery when there are few terms
Date Sat, 14 Mar 2015 22:12:38 GMT
Adrien Grand created LUCENE-6360:
------------------------------------

             Summary: TermsQuery should rewrite to a ConstantScoreQuery over a BooleanQuery
when there are few terms
                 Key: LUCENE-6360
                 URL: https://issues.apache.org/jira/browse/LUCENE-6360
             Project: Lucene - Core
          Issue Type: Improvement
            Reporter: Adrien Grand
            Assignee: Adrien Grand
            Priority: Minor


TermsQuery helps when there are lot of terms from which you would like to compute the union,
but it is a bit harmful when you have few terms since it cannot really skip: it always consumes
all documents matching the underlying terms.

It would certainly help to rewrite this query to a ConstantScoreQuery over a BooleanQuery
when there are few terms in order to have actual skip support.

As usual the hard part is probably to figure out the threshold. :)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message