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
<[email protected]> 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: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to