lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <lucenelist2...@danielnaber.de>
Subject Re: Unique list of keywords
Date Fri, 08 Aug 2008 18:53:16 GMT
On Freitag, 8. August 2008, Martin vWysiecki wrote:

> i have very much data, about 20GB of text, and need a unique list of
> keywords based on my text in all docs from the whole index.

Simply use IndexReader.terms() to iterate over all terms in the index. You 
can then use IndexReader.docFreq(Term) to get the number of documents each 
terms occurs in.

Regards
 Daniel

-- 
http://www.danielnaber.de

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