lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <>
Subject Re: Finding number of occurrences of a given word in a document using LUCENE
Date Wed, 05 Jun 2002 17:15:47 GMT
I never needed to use this, but it looks like you can call
IndexReader's termDocs(Term) method.
That will give you TermDocs, which has a freq() method that may do what
you need.


--- AJIT RAJWADE <> wrote:
> I am currently facing a do I find the number of
> occurrences of a particular word in a certain document. Currently, I
> get some value called as score which is difficult to interpret. I was
> told to use an interface called TermDocs...any more tips?
> Thanks,
> Ajit

Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup

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

View raw message