lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alok Bhandari <alokomprakashbhand...@gmail.com>
Subject How to get top "n" terms from a search result
Date Fri, 13 May 2016 08:37:06 GMT
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message