public interface LuceneConfig
Modifier and Type | Method and Description |
---|---|
org.springframework.context.ConfigurableApplicationContext |
getApplicationContext()
Gets the application context through which events can be broadcast
|
NodeBulkLoader |
getBulkLoader()
Get preloader - may be null if preloading is not supported
|
long |
getCommitLockTimeout() |
org.alfresco.repo.search.MLAnalysisMode |
getDefaultMLIndexAnalysisMode()
The default mode for analysing ML text during index.
|
org.alfresco.repo.search.MLAnalysisMode |
getDefaultMLSearchAnalysisMode()
The default mode for analysis of ML text during search.
|
boolean |
getFairLocking()
Should we use a 'fair' locking policy, giving queue-like access behaviour to the indexes and avoiding starvation?
Default is
false since fair locking appears to cause deadlock on old JVMs. |
int |
getIndexerBatchSize()
The batch size in which to group flushes of the index.
|
int |
getIndexerMaxFieldLength()
Get the max field length that determine how many tokens are put into the index
|
String |
getIndexRootLocation()
The path to the index location
|
int |
getMaxDocIdCacheSize()
How many document ids to cache (-ve => unbounded)
|
int |
getMaxDocsForInMemoryIndex()
Max docs to allow for in memory indexes (does no apply to merges)
|
int |
getMaxDocsForInMemoryMerge()
Max doc number that will merged in memory (and not on disk)
|
int |
getMaxDocumentCacheSize()
How many documents to cache (-ve => unbounded)
|
int |
getMaxIsCategoryCacheSize()
How many categories to cache (-ve => unbounded)
|
int |
getMaxLinkAspectCacheSize()
How many link aspects to cache (-ve => unbounded)
|
int |
getMaxParentCacheSize()
How many parents to cache (-ve => unbounded)
|
int |
getMaxPathCacheSize()
How many paths to cache (-ve => unbounded)
|
double |
getMaxRamInMbForInMemoryIndex()
Max Ram to allow for in memory indexes (does not apply to merges)
|
double |
getMaxRamInMbForInMemoryMerge()
Ram based limit for in memory merges
|
int |
getMaxRawResultSetSizeForInMemorySort() |
long |
getMaxTransformationTime() |
int |
getMaxTypeCacheSize()
How many types to cache (-ve => unbounded)
|
int |
getMergerMaxBufferedDocs()
Lucene merger config
|
int |
getMergerMaxMergeDocs()
Lucene merger config
|
int |
getMergerMergeFactor()
Lucene merger config
|
double |
getMergerRamBufferSizeMb()
Ram based limit for in memory portion of merger index.
|
int |
getMergerTargetIndexCount()
Target index count.
|
int |
getMergerTargetOverlayCount()
Target overlays (will apply deletions and create indexes if over this limit)
|
int |
getMergerTargetOverlaysBlockingFactor()
The factor by which the target overlay count is multiplied to determine the allowable number of overlays before
blocking.
|
boolean |
getPostSortDateTime()
If we are using the DateAnalyser then lucene sort is only to the date, as that is all that is in the index.
|
int |
getQueryMaxClauses()
The maximum numbr of sub-queries the can be generated out of wild card expansion etc
|
int |
getTermIndexInterval()
Lucene term index interval
|
ThreadPoolExecutor |
getThreadPoolExecutor()
Get the thread pool for index merging etc
|
boolean |
getUseInMemorySort() |
boolean |
getUseNioMemoryMapping()
Use the nio memory mapping (work arounf for bugs with some JVMs)
|
long |
getWriteLockTimeout() |
int |
getWriterMaxBufferedDocs()
Lucene writer config
|
int |
getWriterMaxMergeDocs()
Lucene writer config
|
int |
getWriterMergeFactor()
Lucene writer config
|
double |
getWriterRamBufferSizeMb()
Ram based limit for in memory portion of writer index.
|
boolean |
isCacheEnabled()
Is caching enabled for each index fragment?
|
boolean |
isContentIndexingEnabled() |
void |
setCacheEnabled(boolean cacheEnabled) |
void |
setCommitLockTimeout(long timeout) |
void |
setContentIndexingEnabled(boolean contentIndexingEnabled)
Enable/Disable the indexing of content
Content is not indexed and FTS disabled
When disabled, documents are marked as requiring FTS indexing.
|
void |
setDefaultMLIndexAnalysisMode(org.alfresco.repo.search.MLAnalysisMode mode) |
void |
setDefaultMLSearchAnalysisMode(org.alfresco.repo.search.MLAnalysisMode mode) |
void |
setFairLocking(boolean fairLocking) |
void |
setIndexerBatchSize(int indexerBatchSize) |
void |
setIndexerMaxFieldLength(int indexerMaxFieldLength) |
void |
setLockDirectory(String lockDirectory)
Set the lock dir - just to make sure - this should no longer be used.
|
void |
setLockPollInterval(long time) |
void |
setMaxAtomicTransformationTime(long maxAtomicTransformationTime) |
void |
setMaxDocIdCacheSize(int maxDocIdCacheSize) |
void |
setMaxDocsForInMemoryIndex(int maxDocsForInMemoryIndex) |
void |
setMaxDocsForInMemoryMerge(int maxDocsForInMemoryMerge) |
void |
setMaxDocumentCacheSize(int maxDocumentCacheSize) |
void |
setMaxIsCategoryCacheSize(int maxIsCategoryCacheSize) |
void |
setMaxLinkAspectCacheSize(int maxLinkAspectCacheSize) |
void |
setMaxParentCacheSize(int maxParentCacheSize) |
void |
setMaxPathCacheSize(int maxPathCacheSize) |
void |
setMaxRamInMbForInMemoryIndex(double maxRamInMbForInMemoryIndex) |
void |
setMaxRamInMbForInMemoryMerge(double maxRamInMbForInMemoryMerge) |
void |
setMaxTypeCacheSize(int maxTypeCacheSize) |
void |
setMergerMaxBufferedDocs(int mergerMaxBufferedDocs) |
void |
setMergerMaxMergeDocs(int mergerMaxMergeDocs) |
void |
setMergerMergeFactor(int mergerMergeFactor) |
void |
setMergerRamBufferSizeMb(double mergerRamBufferSizeMb) |
void |
setMergerTargetIndexCount(int mergerTargetIndexCount) |
void |
setMergerTargetOverlayCount(int mergerTargetOverlayCount) |
void |
setMergerTargetOverlaysBlockingFactor(int mergerTargetOverlaysBlockingFactor) |
void |
setPostSortDateTime(boolean postSortDateTime) |
void |
setQueryMaxClauses(int queryMaxClauses) |
void |
setTermIndexInterval(int termIndexInterval) |
void |
setUseNioMemoryMapping(boolean useNioMemoryMapping) |
void |
setWriteLockTimeout(long timeout) |
void |
setWriterMaxBufferedDocs(int writerMaxBufferedDocs) |
void |
setWriterMaxMergeDocs(int writerMaxMergeDocs) |
void |
setWriterMergeFactor(int writerMergeFactor) |
void |
setWriterRamBufferSizeMb(double writerRamBufferSizeMb) |
void setLockDirectory(String lockDirectory)
lockDirectory
- StringString getIndexRootLocation()
int getIndexerBatchSize()
int getQueryMaxClauses()
org.alfresco.repo.search.MLAnalysisMode getDefaultMLIndexAnalysisMode()
org.alfresco.repo.search.MLAnalysisMode getDefaultMLSearchAnalysisMode()
int getIndexerMaxFieldLength()
ThreadPoolExecutor getThreadPoolExecutor()
NodeBulkLoader getBulkLoader()
boolean getUseNioMemoryMapping()
int getMaxDocsForInMemoryMerge()
int getWriterMaxBufferedDocs()
int getWriterMergeFactor()
int getWriterMaxMergeDocs()
int getMergerMaxBufferedDocs()
int getMergerMergeFactor()
int getMergerMaxMergeDocs()
int getMergerTargetOverlayCount()
int getMergerTargetOverlaysBlockingFactor()
int getMergerTargetIndexCount()
int getTermIndexInterval()
boolean isCacheEnabled()
int getMaxIsCategoryCacheSize()
int getMaxDocumentCacheSize()
int getMaxDocIdCacheSize()
int getMaxPathCacheSize()
int getMaxTypeCacheSize()
int getMaxParentCacheSize()
int getMaxLinkAspectCacheSize()
boolean getPostSortDateTime()
org.springframework.context.ConfigurableApplicationContext getApplicationContext()
double getMaxRamInMbForInMemoryMerge()
double getWriterRamBufferSizeMb()
double getMergerRamBufferSizeMb()
int getMaxDocsForInMemoryIndex()
double getMaxRamInMbForInMemoryIndex()
boolean getFairLocking()
false
since fair locking appears to cause deadlock on old JVMs.true
if a fair locking policy should be usedvoid setMaxAtomicTransformationTime(long maxAtomicTransformationTime)
maxAtomicTransformationTime
- longlong getMaxTransformationTime()
boolean getUseInMemorySort()
void setIndexerBatchSize(int indexerBatchSize)
indexerBatchSize
- intvoid setQueryMaxClauses(int queryMaxClauses)
queryMaxClauses
- intvoid setWriteLockTimeout(long timeout)
timeout
- longvoid setCommitLockTimeout(long timeout)
timeout
- longlong getCommitLockTimeout()
long getWriteLockTimeout()
void setLockPollInterval(long time)
time
- longvoid setIndexerMaxFieldLength(int indexerMaxFieldLength)
indexerMaxFieldLength
- intvoid setDefaultMLIndexAnalysisMode(org.alfresco.repo.search.MLAnalysisMode mode)
mode
- MLAnalysisModevoid setDefaultMLSearchAnalysisMode(org.alfresco.repo.search.MLAnalysisMode mode)
mode
- MLAnalysisModevoid setMaxDocIdCacheSize(int maxDocIdCacheSize)
maxDocIdCacheSize
- intvoid setMaxDocsForInMemoryMerge(int maxDocsForInMemoryMerge)
maxDocsForInMemoryMerge
- intvoid setMaxDocumentCacheSize(int maxDocumentCacheSize)
maxDocumentCacheSize
- intvoid setMaxIsCategoryCacheSize(int maxIsCategoryCacheSize)
maxIsCategoryCacheSize
- intvoid setMaxLinkAspectCacheSize(int maxLinkAspectCacheSize)
maxLinkAspectCacheSize
- intvoid setMaxParentCacheSize(int maxParentCacheSize)
maxParentCacheSize
- intvoid setMaxPathCacheSize(int maxPathCacheSize)
maxPathCacheSize
- intvoid setMaxTypeCacheSize(int maxTypeCacheSize)
maxTypeCacheSize
- intvoid setMergerMaxMergeDocs(int mergerMaxMergeDocs)
mergerMaxMergeDocs
- intvoid setMergerMergeFactor(int mergerMergeFactor)
mergerMergeFactor
- intvoid setMergerMaxBufferedDocs(int mergerMaxBufferedDocs)
mergerMaxBufferedDocs
- intvoid setMergerTargetIndexCount(int mergerTargetIndexCount)
mergerTargetIndexCount
- intvoid setMergerTargetOverlayCount(int mergerTargetOverlayCount)
mergerTargetOverlayCount
- intvoid setMergerTargetOverlaysBlockingFactor(int mergerTargetOverlaysBlockingFactor)
mergerTargetOverlaysBlockingFactor
- intvoid setFairLocking(boolean fairLocking)
fairLocking
- booleanvoid setTermIndexInterval(int termIndexInterval)
termIndexInterval
- intvoid setUseNioMemoryMapping(boolean useNioMemoryMapping)
useNioMemoryMapping
- booleanvoid setWriterMaxMergeDocs(int writerMaxMergeDocs)
writerMaxMergeDocs
- intvoid setWriterMergeFactor(int writerMergeFactor)
writerMergeFactor
- intint getMaxRawResultSetSizeForInMemorySort()
void setWriterMaxBufferedDocs(int writerMaxBufferedDocs)
writerMaxBufferedDocs
- intvoid setCacheEnabled(boolean cacheEnabled)
cacheEnabled
- booleanvoid setPostSortDateTime(boolean postSortDateTime)
postSortDateTime
- booleanvoid setMaxDocsForInMemoryIndex(int maxDocsForInMemoryIndex)
maxDocsForInMemoryIndex
- intvoid setMaxRamInMbForInMemoryMerge(double maxRamInMbForInMemoryMerge)
maxRamInMbForInMemoryMerge
- doublevoid setMaxRamInMbForInMemoryIndex(double maxRamInMbForInMemoryIndex)
maxRamInMbForInMemoryIndex
- doublevoid setMergerRamBufferSizeMb(double mergerRamBufferSizeMb)
mergerRamBufferSizeMb
- doublevoid setWriterRamBufferSizeMb(double writerRamBufferSizeMb)
writerRamBufferSizeMb
- doubleboolean isContentIndexingEnabled()
void setContentIndexingEnabled(boolean contentIndexingEnabled)
contentIndexingEnabled
- booleanCopyright © 2005–2017 Alfresco Software. All rights reserved.