Re: About counting term hits

2008-11-13 Thread lbarcala
> yes its quite possible. > 1.you need to create term which you need to search. > eg. > Term term = new Term("yourfield","yourword"); > > 2. then create a TermDoc enum. > TermDocs provides an interface for enumerating pairs > for a term. > > TermDocs t = new > FilterIndexReader(IndexReader.open("y

Re: About counting term hits

2008-11-13 Thread lbarcala
> Mario, > > Does this help: > http://hudson.zones.apache.org/hudson/job/Lucene-trunk/javadoc//org/apache/lucene/index/TermFreqVector.html > > Plus: > http://hudson.zones.apache.org/hudson/job/Lucene-trunk/javadoc//org/apache/lucene/index/IndexReader.html#method_summary > (look for "getTerm.Freq...