lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "none none" <>
Subject Re: MultiTermQuery question
Date Mon, 24 Feb 2003 20:42:31 GMT

On Mon, 24 Feb 2003 10:04:30  
 Doug Cutting wrote:
>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?

i don't know, i guess so, i believe it should be public i need to call it from the lucene
So what i'll have to do is:
-iterate while is true
-call getTerm() to get the current Term.
-add the term.text() in a vector
-end loop
-use this vector of text-terms inside the highlighter tool
Am i Right? if so, do you think it will be slower than before? 
Thank you Doug.

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

Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.

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

View raw message