Re: Storing no. of occurances of a token

2006-09-13 Thread Paul Elschot
On Wednesday 13 September 2006 09:30, Venkateshprasanna wrote: Is it possible for me to store the number of occurances of a token in a particular document or a collection of documents? When the token is indexed as a term, an IndexReader provides access to the total number of documents

Re: Storing no. of occurances of a token

2006-09-13 Thread Bill Taylor
On Sep 13, 2006, at 3:39 AM, Paul Elschot wrote: On Wednesday 13 September 2006 09:30, Venkateshprasanna wrote: Is it possible for me to store the number of occurances of a token in a particular document or a collection of documents? When the token is indexed as a term, an IndexReader

Re: Storing no. of occurances of a token

2006-09-13 Thread Chris Hostetter
: I found out how to determine the number of documents in which a term : appeared by looking at the Luke code, but how does one determine the : number of times it occurs in each document? take a look at the TermDocs class. -Hoss

Re: Storing no. of occurances of a token

2006-09-13 Thread Doron Cohen
I found out how to determine the number of documents in which a term appeared by looking at the Luke code, but how does one determine the number of times it occurs in each document? Use TermDocs - http://lucene.apache.org/java/docs/api/org/apache/lucene/index/TermDocs.html Something like -