: I think to do this efficiently you'd need to modify Lucene's builtin query
: classes (eg TermQuery) such that during the scoring process, in addition to
: simply computing its contribution to the document's score, it would also
: record further information like total number of occurrences of eac
I think to do this efficiently you'd need to modify Lucene's builtin
query classes (eg TermQuery) such that during the scoring process, in
addition to simply computing its contribution to the document's score,
it would also record further information like total number of
occurrences of ea
Nutch
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: java-user@lucene.apache.org
Sent: Thursday, November 13, 2008 11:35:13 AM
Subject: Re: About counting term hits
> Mario,
>
> Does this help:
> http://hudson.zones.apache.org/hudson/job/Lucene-trunk
> 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...
ot;)
Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: java-user@lucene.apache.org
Sent: Thursday, November 13, 2008 3:35:24 AM
Subject: Re: About counting term hits
> yes its qu
> 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
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("youindex")).termDocs(
Hello:
I am new to LUCENE and I am testing some issues about it. I can retrieve
the number of documents which satisfies a query, but I don't find how to
obtain the number of terms which match it.
For example, if I search for the word "house", I want to obtain the
number of times the word occurs (