"
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
> 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
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
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
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
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
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.
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.
--
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
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
-
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
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
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
13 matches
Mail list logo