Re: IndexSearcher and IndexWriter.rollback

2022-04-15 Thread Gautam Worah
Q1. Are you using a SearcherManager or a direct IndexSearcher? If you are using a SearcherManager, you could just call `maybeRefresh()` and then re-acquire a new `IndexSearcher`. The method docs

IndexSearcher and IndexWriter.rollback

2022-04-14 Thread erel
I’m using an IndexSearcher created from an IndexWriter (NRT mode). Up until now the IW was kept open forever. I want to properly handle cases where an indexing task failed and call IW.rollback to discard the incomplete changes. The problem I’m facing is that rollback also closes the writer. Q