How to get top "n" terms from a search result

2016-05-13 Thread Alok Bhandari
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} a

Re: How to achieve real-time index search in lucene

2016-01-06 Thread Alok Bhandari
Hello Michael , thanks for your reply. But I am not getting unique identifier , do we have a way to specify a unique identifier in lucene. As per my knowledge solr have it but lucene does not have a concept of unique-identifier. If you know about it please can you share a snippet , it would be

Re: How to achieve real-time index search in lucene

2016-01-05 Thread Alok Bhandari
Is any one aware of how to achieve this ? -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-achieve-real-time-index-search-in-lucene-tp4248648p4248807.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --

How to achieve real-time index search in lucene

2016-01-05 Thread Alok Bhandari
Hello , I am using lucene 5.2 , in one scenario I need to index few docs , and if a document is already indexed then update it. If a situation comes where I just indexed a doc and now need to update it , but it adds 2 independent entries instead of updating the first one. This is because unless