Hello ,

I have a set of documents ,
doc1:{world,hello}
doc2:{world,test,try}
doc3:{try, play,work}
doc4:{hello,football,play}



I want to query like doc_id:(doc1 doc2 doc4) and want to fetch top high-freq
terms from the token terms ,
so if I want top 2 terms , it should return {world=2,hello=2} as both terms
are occurring twice.

Is there any way to achieve this directly from lucene. I have a way by which
I play with terms on client side and then get the expected result but that
is time consuming.  



--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-get-top-n-terms-from-a-search-result-tp4276480.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to