lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markh <>
Subject Prioritizing BooleanQueries to Improve Performance
Date Fri, 07 Aug 2015 16:46:01 GMT
If I have a BooleanQuery which has two subqueries, one fast, one slow 

(fastQuery) && (slowQuery)

Is there a way to tell Lucene to execute the fastQuery first so it can
potentially skip the slowQuery if there are no results from the fastQuery?

I don't think making the slow query a filter (Occur.Filter) will do the
trick if I have a complex expression.   

I am using Lucene 5.2.


View this message in context:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message