org.hibernate.search.indexes.impl
Class NRTIndexManager
java.lang.Object
org.hibernate.search.indexes.impl.DirectoryBasedIndexManager
org.hibernate.search.indexes.impl.NRTIndexManager
- All Implemented Interfaces:
- IndexManager
public class NRTIndexManager
- extends DirectoryBasedIndexManager
IndexManager implementation taking advantage of the Near-Real-Time
features of Lucene.
When using this work mode the IndexWriter does not need a full
flush at the end of each operation: new IndexReaders are able to
inspect the unflushed changes still pending in the IndexWriter buffers.
This improves write performance as the IndexWriter doesn't need
to commit as often, but has two limitations:
- unsaved index data might be lost in case of crashes
- is not useful for non-local (clustered) backends
- Since:
- 4.0
- Author:
- Sanne Grinovero (C) 2011 Red Hat Inc.
Methods inherited from class org.hibernate.search.indexes.impl.DirectoryBasedIndexManager |
addContainedEntity, createDirectoryProvider, destroy, getAnalyzer, getBackendQueueProcessor, getContainedTypes, getDirectoryModificationLock, getDirectoryProvider, getIndexBindingForEntity, getIndexingParameters, getIndexName, getOptimizerStrategy, getReaderProvider, getSerializer, getSimilarity, initialize, optimize, performOperations, performStreamOperation, setIndexWriterConfig, setSearchFactory, setSimilarity, toString |
NRTIndexManager
public NRTIndexManager()
createBackend
protected BackendQueueProcessor createBackend(String indexName,
Properties cfg,
WorkerBuildContext buildContext)
- Description copied from class:
DirectoryBasedIndexManager
- extensions points from
DirectoryBasedIndexManager.initialize(String, Properties, WorkerBuildContext)
- Overrides:
createBackend
in class DirectoryBasedIndexManager
createIndexReader
protected DirectoryBasedReaderProvider createIndexReader(String indexName,
Properties cfg,
WorkerBuildContext buildContext)
- Overrides:
createIndexReader
in class DirectoryBasedIndexManager
Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved