> 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...") > > Otis > -- > Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch >
So, if I undertand the solution, the main steps to do what I propose is: 1) To obtain the documents which match the query (documents which include the word "house") 2) To loop throw matching documents to access the IndexReader for obtaining their term frequencies. 3) To obtain from TermFreqVector the frequencies of the Term ("house") to calculate the result. And, if it is a very frequent query and there are much documents (> 10.000), would LUCENE solve it in a reasonable time? A query might match several hundred documents. Thank you, 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 (not the number of documents). >>> >>> Is it possible to do it in LUCENE? >>> >>> Thanks in advance, >>> >>> Mario Barcala >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> >> -- >> ---------------------------------------- >> "Help Ever Hurt Never"- Baba >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]