lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wettin <>
Subject Re: Best way to count tokens
Date Wed, 31 Oct 2007 16:39:01 GMT

31 okt 2007 kl. 15.18 skrev Cool Coder:

> Hi Group,
>               I need to display list of tokens (tags) in my side  
> those have got maximum occurances in my index. One way I can think  
> of is to keep track of all tokens during analysis and accordingly  
> display them. Is there any other way? e.g. if I want to display  
> tokens in order of their occurences as well as their weightage.

Are you looking for the term frequency vector?


If you are using 2.3 the TermVectorMapper might save you a couple of  
clock ticks sorting.

Or is this something you want to do prior to adding the document to  
the index?


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

View raw message