lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Short circuit AND or subquerying in lucene for performance
Date Wed, 15 Feb 2012 20:47:59 GMT

: Basically for queries such as field1:foo AND field2:*bar, I think it
: would be highly beneficial to restrict evaluation of the second field on
: the result of the first to avoid scanning the index in its entirety due
: to the leading wildcard.

This is exactly how the BooleanQuery class in Lucene works.

Please note the logic in ConjunctionScorer and BooleanScorer2 (how much 
optimizing can be done depends on wether all of the clauses are required 
or not)

-Hoss

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


Mime
View raw message