Re: About counting term hits

2008-11-15 Thread Chris Hostetter
: 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

Re: About counting term hits

2008-11-14 Thread Michael McCandless
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

Re: About counting term hits

2008-11-13 Thread Otis Gospodnetic
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

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

Re: About counting term hits

2008-11-13 Thread Otis Gospodnetic
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

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-12 Thread dipesh
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(

About counting term hits

2008-11-12 Thread Fco. Mario Barcala
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 (