Re: Query.combine()

2006-05-30 Thread Chuck Williams
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() met

Re: Query.combine()

2006-05-30 Thread Joe R
Oh, yeah -- wildcard and range queries. That's an even better reason for this method than the one I guessed (and the hunt for an optimization that nobody has thought of continues on...) If I understand correctly, I can still do the combine() once on the JMS MultiSearcher if the query doesn't con

Re: Query.combine()

2006-05-30 Thread Chuck Williams
If I understand what you are saying, unfortunately it will not work. The issue is that rewrite() needs to access the index. E.g., a* or [a TO d] rewrite to disjunctions of all terms that exist in the index that match, respectively, the prefix or range. To determine this set of terms it is necess