lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@lucene.com>
Subject Re: MultiTermQuery question
Date Mon, 24 Feb 2003 18:04:30 GMT
none none wrote:
>  hi, i appreciate see you guys planning for a new feature of Lucene, but this topic started
a with a question, it is possible get a list of terms from MultiTermQuery?? as it was possible
in the release 1.2.

This feature before relied on a few bugs.  One was that, when a 
MultiTermQuery was used with a MultiSearcher the query was not correctly 
expanded.  Another related bug was that if the query was used a second 
time on a different searcher then the query would not be re-expanded.

In the 1.3 sources a MultiTermQuery is expanded separately for each 
index searched.  Thus there is no single list of terms that it 
corresponds to.  The better way to do this, then as now, is to use its 
FilteredTermEnum to enumerate the terms for a particular index.

Perhaps MultiTermQuery.getEnum() should be changed from protected to 
private.  Would that work for you?

Doug


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


Mime
View raw message