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
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
: 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
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 -