org.hibernate.search.indexes.impl
Class NRTIndexManager

java.lang.Object
  extended by org.hibernate.search.indexes.impl.DirectoryBasedIndexManager
      extended by 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:

Since:
4.0
Author:
Sanne Grinovero (C) 2011 Red Hat Inc.

Constructor Summary
NRTIndexManager()
           
 
Method Summary
protected  BackendQueueProcessor createBackend(String indexName, Properties cfg, WorkerBuildContext buildContext)
           
protected  DirectoryBasedReaderProvider createIndexReader(String indexName, Properties cfg, WorkerBuildContext buildContext)
           
 
Methods inherited from class org.hibernate.search.indexes.impl.DirectoryBasedIndexManager
addContainedEntity, createDirectoryProvider, destroy, getAnalyzer, getBackendQueueProcessor, getContainedTypes, getDirectoryModificationLock, getDirectoryProvider, getIndexBinding, getIndexingParameters, getIndexName, getOptimizerStrategy, getReaderProvider, getSerializer, getSimilarity, initialize, optimize, performOperations, performStreamOperation, setSearchFactory, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NRTIndexManager

public NRTIndexManager()
Method Detail

createBackend

protected BackendQueueProcessor createBackend(String indexName,
                                              Properties cfg,
                                              WorkerBuildContext buildContext)
Overrides:
createBackend in class DirectoryBasedIndexManager

createIndexReader

protected DirectoryBasedReaderProvider createIndexReader(String indexName,
                                                         Properties cfg,
                                                         WorkerBuildContext buildContext)
Overrides:
createIndexReader in class DirectoryBasedIndexManager


Copyright © 2006-2013 Red Hat, Inc. All Rights Reserved