lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alok Bhandari <>
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 ,
doc3:{try, play,work}

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:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message