lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
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.

Otis


--- AJIT RAJWADE <ajit.rajwade@veritas.com> wrote:
> I am currently facing a difficulty...how 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
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message