Why not just always use IndexWriter.updateDocument, passing a unique
identifier for your document?

This way IW will add it if it doesn't exist, else replace it if it did.

Mike McCandless

http://blog.mikemccandless.com


On Tue, Jan 5, 2016 at 10:35 PM, Alok Bhandari
<alokomprakashbhand...@gmail.com> wrote:
> 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.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>

---------------------------------------------------------------------
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