lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <erickerick...@gmail.com>
Subject Re: Can I get the most hot term ?
Date Sat, 23 Sep 2006 12:27:22 GMT
I'm pretty sure you have to count them yourself, but that's made pretty easy
by the TermEnum, TermFreqVector etc. classes. I have only used a few of
these, so I can't be much help. But these sure seem like what you're looking
for.

Best
Erick

On 9/23/06, Weiming Yin <yinweiming@gmail.com> wrote:
>
> Hi, all,
> I am working with the follow situation.
> 1: a, b
> 2: b, c
>
> When I build index with 1 and 2, it gives me three terms, a, b and c.
> and 'b' is the most hot because it appears two times.
>
> Is there a method that I get all (or a part of) terms that sorted by
> appears
> time.
> For the before example, when I get the terms it returns me
> b (2 times), a (1 time), c( 1time).
>
> Is there a method do like this?
>
> Thanks.
>
> --
> Weiming
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message