lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "none none" <kor...@lycos.com>
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
highlighter.
So what i'll have to do is:
-getEnum()
-iterate while FilteredTermEnum.next() 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.

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


_____________________________________________________________
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus

---------------------------------------------------------------------
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