Re: Building an automaton efficiently (CompiledAutomaton vs RunAutomaton vs Automaton)

2017-02-19 Thread Oliver Mannion
Hi David & Mike, Thanks for the suggestions! Regarding my requirements for building the FSA, it happens in a background process, not as part of a request, although the app is still serving requests at the same time. So the time taken to build isn't really the issue, it's just that it shouldn't st

making realtime deletion through indexWriter, deletion not synced to indexReader

2017-02-19 Thread ximing
Hi, all I am using lucene 5.5.4. As trying to make a real-time deletion, I made two singletons, IndexGenerator.java is responsible for the index generating and deletion, and Searcher.java is responsible for doing the search. In order to make the deletion immediately change the search result, I e