lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Klaas <mike.kl...@gmail.com>
Subject Re: Extract terms not by reader, but by documents
Date Thu, 06 Sep 2007 21:59:14 GMT
On 6-Sep-07, at 11:48 AM, Grant Ingersoll wrote:

>
> On Sep 6, 2007, at 1:32 PM, Rafael Rossini wrote:
>
>> Karl, I´m aware of IndexReader.getTermFreqVector, with this I can  
>> get all
>> terms of a document, but I want all terms of a document that  
>> matched a
>> query.
>>
>> Grant,
>>
>>> Yes, I think I understand.  You want to know what terms from your
>>> query matched in a given document.
>>
>> Yep, that´s what I want. In the contrib/highlighter package, the
>> query.rewrite.extractTerms is used to match the terms in the  
>> documents. So
>>
>
> Can you point to where this is taking place in the contrib/ 
> highlighter?  I am not a highlighter expert, but I would like to  
> see it.  The only place I see a call to extractTerms is in  
> QueryTermExtractor.java

The document is re-analyzed, or the token stream is retrieved from  
term vector reconstruction.  Das ist allist.

-Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message