lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wettin <karl.wet...@gmail.com>
Subject Re: Using TermVectorMapper to compute term frequency across documents
Date Thu, 15 Oct 2009 13:15:41 GMT

14 okt 2009 kl. 15.15 skrev Grant Ingersoll:
> On Oct 12, 2009, at 10:46 PM, Thomas D'Silva wrote:
>>
>> I am trying to compute the counts of terms of the documents  
>> returned by running a query using a TermVectorMapper.
>> I was wondering if anyone knew if there was a faster way to do this  
>> rather than using a HashMap with a TermVectorMapper to store the  
>> counts of the terms and calling getTermFreqVector().
>> I do not require the term frequency within a document.
>
> I think that is as fast as its going to get unless you have some  
> other restrictions that would allow you to use a FieldCache.

Just thinking out loud here... How about extending the Query/Scorer  
and do some counting while executing the Query?


      karl

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