Class TurLuceneInstanceProcess
java.lang.Object
com.viglet.turing.lucene.TurLuceneInstanceProcess
Creates and caches
TurLuceneInstance objects per index path.
Mirrors TurSolrInstanceProcess for the Lucene engine.- Since:
- 2026.1
- Author:
- Alexandre Oliveira
-
Constructor Summary
ConstructorsConstructorDescriptionTurLuceneInstanceProcess(TurSNSiteRepository turSNSiteRepository, TurSNSiteLocaleRepository turSNSiteLocaleRepository) -
Method Summary
Modifier and TypeMethodDescriptionvoidEvicts a cached instance (e.g. after a core is deleted).initLuceneInstance(TurSEInstance turSEInstance, String coreName) Initialises (or returns a cached) Lucene instance for the given SE instance + core name.initLuceneInstance(TurSNSiteLocale turSNSiteLocale) initLuceneInstance(String siteName, Locale locale) Initialises (or returns a cached) Lucene instance for the given site + locale.voidresetInstance(Path indexPath) Closes and evicts the cached instance forindexPath, then deletes the index directory.voidshutdown()
-
Constructor Details
-
TurLuceneInstanceProcess
public TurLuceneInstanceProcess(TurSNSiteRepository turSNSiteRepository, TurSNSiteLocaleRepository turSNSiteLocaleRepository)
-
-
Method Details
-
initLuceneInstance
Initialises (or returns a cached) Lucene instance for the given site + locale. -
initLuceneInstance
Initialises (or returns a cached) Lucene instance for the given SE instance + core name. -
initLuceneInstance
-
evict
-
resetInstance
Closes and evicts the cached instance forindexPath, then deletes the index directory. The next call toinitLuceneInstancewill recreate a fresh empty index. Used to recover from Lucene schema conflicts. -
shutdown
@PreDestroy public void shutdown()
-