lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chuck Williams <>
Subject Re: Query.combine()
Date Tue, 30 May 2006 22:59:29 GMT

Joe R wrote on 05/30/2006 12:37 PM:
> If I understand correctly, I can still do the
> combine() once on the JMS MultiSearcher if the query doesn't contain any
> wildcard or range terms.
In general, you cannot rely on this.  Any app may define any subtype of
Query and give it a rewrite() method that relies on the index.  Rather
than relying on a closed set of index-dependent queries, a better
approach would be to have a close set of index-independent queries. 
E.g., if you query was composed exclusively of BooleanQuery, TermQuery
and PhraseQuery operators, which probably encompasses the vast majority
of user-entered queries, then you could do the optimization.


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

View raw message