Re: making realtime deletion through indexWriter, deletion not synced to indexReader

2017-02-20 Thread ximing
Thanks, Michael: I make a simple API that when I want to make the updated index to be functional, re-assign the Singleton instance of Searcher to be null, and that seems to work. I'll check the SearcherManager for further optimization. Thanks for your trouble to review this problem and it really

Re: making realtime deletion through indexWriter, deletion not synced to indexReader

2017-02-20 Thread Michael McCandless
An IndexSearcher only searches the point-in-time view of your index as of when it was opened. So any changes to the index (newly indexed documents, or deleted documents) will not be reflected until you refresh the underlying IndexReader, to see the next point-in-time view. The refresh is efficien