Thanks for the response and really appreciate your help. I have read the documentation but could not get it in the first read as I was new to Lucene. I have changed it to AtomicReader and it seems to be working fine.
One last clarification is do we also need to use AtomicReader for the following below as well? IndexReader indexReader = DirectoryReader.open(directory); // Current Should it be changed to: AtomicReader indexReader = DirectoryReader.open(directory); Thanks, Sai -- View this message in context: http://lucene.472066.n3.nabble.com/TopDocCollector-vs-TopScoreDocCollector-semantics-changed-in-4-0-not-backward-comptabile-tp4035806p4045319.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