lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sidhant Aggarwal <>
Subject Reopen AnalyzingInfixSuggester Multi Threaded
Date Thu, 06 Jul 2017 06:23:24 GMT

Im using the AnalyzingInfixSuggester for my autocomplete.
So i have a singleton object where I am opening the suggester and  keeping the references.
Many threads are accessing these references and performing searches. But what i want to do
is that my underlying directory where the index is placed is replaced with a new index completely.
So i want to reload this new index and assign it to the singleton indexrefs variable.
How can i achieve this while multiple threads are using these references to perform searches.

I cant use the refresh method on the suggester because that does not reload the index. So
to reload i need to close the old one first and reopen it from the same directory.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
    • Unnamed multipart/related (inline, None, 0 bytes)
View raw message