Re: High frequency term for the searched query

2010-11-06 Thread starz10de
" thanks a lot -- View this message in context: http://lucene.472066.n3.nabble.com/High-frequency-term-for-the-searched-query-tp1839942p1852936.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To

Re: High frequency term for the searched query

2010-11-06 Thread Michael McCandless
> http://lucene.472066.n3.nabble.com/High-frequency-term-for-the-searched-query-tp1839942p1848702.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: java-us

Re: High frequency term for the searched query

2010-11-05 Thread starz10de
66.n3.nabble.com/High-frequency-term-for-the-searched-query-tp1839942p1848702.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For addit

RE: High frequency term for the searched query

2010-11-05 Thread starz10de
x27;t understand why this error appeared: "the method extractterms(Set) is undefined for the type Query" any idea -- View this message in context: http://lucene.472066.n3.nabble.com/High-frequency-term-for-the-searched-query-tp1839942p1847012.html Sent from the Lucene - Java Users mailing

Re: High frequency term for the searched query

2010-11-05 Thread Michael McCandless
ing > with Bank. So my query is “Bank” and the result should be ranked list of the > most frequent terms with "Bank" > > I could do that as I explained but not in efficient way. > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/High-freque

RE: High frequency term for the searched query

2010-11-05 Thread Uwe Schindler
to:farag_ah...@yahoo.com] > Sent: Friday, November 05, 2010 8:28 AM > To: java-user@lucene.apache.org > Subject: Re: High frequency term for the searched query > > > HI Chris, > > I tried your solution and got one problem "the method > extractterms(Set) is undefined f

Re: High frequency term for the searched query

2010-11-05 Thread starz10de
searcher.docFreq(t); } Thanks in advance -- View this message in context: http://lucene.472066.n3.nabble.com/High-frequency-term-for-the-searched-query-tp1839942p1846781.html Sent from the Lucene - Java Users mailing list archive at Nabble.com.

RE: High frequency term for the searched query

2010-11-05 Thread starz10de
ed but not in efficient way. -- View this message in context: http://lucene.472066.n3.nabble.com/High-frequency-term-for-the-searched-query-tp1839942p1846800.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --

Re: High frequency term for the searched query

2010-11-04 Thread Chris Lu
After you get the query object, you can use IndexSearcher's function docFreq(), like this final Set terms = new HashSet(); query = searcher.rewrite(query); query.extractTerms(terms); for(Term t : terms){ int frequency = searcher.docFreq(t); } -- -- Chris Lu - Instant

Re: High frequency term for the searched query

2010-11-04 Thread Chris Lu
After you get the query object, you can use IndexSearcher's function docFreq(), like this final Set terms = new HashSet(); query = searcher.rewrite(query); query.extractTerms(terms); for(Term t : terms){ int frequency = irs.getSearcher().docFreq(t); } -- -- Chris Lu -

RE: High frequency term for the searched query

2010-11-04 Thread Burton-West, Tom
Tom Burton-West http://www.hathitrust.org/blogs/large-scale-search -Original Message- From: starz10de [mailto:farag_ah...@yahoo.com] Sent: Thursday, November 04, 2010 3:54 AM To: java-user@lucene.apache.org Subject: High frequency term for the searched query I need to find the most frequent t

Re: High frequency term for the searched query

2010-11-04 Thread Seth Rosen
in the new index so I can find the most frequent terms > to > the query. However, this is very slow and need long time to run. > > Any idea how I can do this task efficiently > > > Thanks in advance > > -- > View this message in context: > http://lucene.472066.n3.nabb

High frequency term for the searched query

2010-11-04 Thread starz10de
Thanks in advance -- View this message in context: http://lucene.472066.n3.nabble.com/High-frequency-term-for-the-searched-query-tp1839942p1839942.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To