public abstract class AbstractLuceneIndexerAndSearcherFactory extends AbstractIndexerAndSearcher implements LuceneIndexerAndSearcher, XAResource, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.DisposableBean
Modifier and Type | Class and Description |
---|---|
static class |
AbstractLuceneIndexerAndSearcherFactory.LuceneIndexBackupComponent
This component is able to safely perform backups of the Lucene indexes while the server is running.
|
static class |
AbstractLuceneIndexerAndSearcherFactory.LuceneIndexBackupJob
Job that lock uses the
AbstractLuceneIndexerAndSearcherFactory.LuceneIndexBackupComponent to perform safe backups of the Lucene indexes. |
LuceneIndexerAndSearcher.ReadOnlyWork<Result>
Modifier and Type | Field and Description |
---|---|
protected org.alfresco.repo.tenant.TenantService |
tenantService |
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
Constructor and Description |
---|
AbstractLuceneIndexerAndSearcherFactory()
Private constructor for the singleton TODO: FIt in with IOC
|
Modifier and Type | Method and Description |
---|---|
void |
commit()
Commit the transaction
|
void |
commit(Xid xid,
boolean onePhase) |
protected abstract LuceneIndexer |
createIndexer(org.alfresco.service.cmr.repository.StoreRef storeRef,
String deltaId)
Encapsulate creating an indexer
|
static void |
deleteDirectory(File directory) |
void |
destroy() |
<R> R |
doReadOnly(LuceneIndexerAndSearcher.ReadOnlyWork<R> lockWork) |
void |
end(Xid xid,
int flag) |
void |
flush()
Do any indexing that may be pending on behalf of the current transaction.
|
void |
forget(Xid xid) |
protected abstract List<org.alfresco.service.cmr.repository.StoreRef> |
getAllStores() |
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()
Get the commit lock timout.
|
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. |
LuceneIndexer |
getIndexer(org.alfresco.service.cmr.repository.StoreRef storeRef)
Get an indexer for the store to use in the current transaction for this thread of control.
|
int |
getIndexerBatchSize()
The batch size in which to group flushes of the index.
|
int |
getIndexerMaxFieldLength()
Get the max number of tokens in the field
|
String |
getIndexRootLocation()
The path to the index location
|
String |
getLockDirectory()
Get the directory where any lock files are written (by default there are none)
|
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()
Get the max time for an atomic transform
|
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.
|
protected abstract org.alfresco.service.cmr.search.SearchService |
getNodeSearcher()
Get node-based searcher (for "selectNodes / selectProperties")
|
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.
|
protected LuceneQueryLanguageSPI |
getQueryLanguage(String name) |
int |
getQueryMaxClauses()
The maximum numbr of sub-queries the can be generated out of wild card expansion etc
|
QueryRegisterComponent |
getQueryRegister()
Get the query register.
|
LuceneSearcher |
getSearcher(org.alfresco.service.cmr.repository.StoreRef storeRef,
boolean searchDelta)
Encapsulate creating a searcher over the main index
|
protected abstract LuceneSearcher |
getSearcher(org.alfresco.service.cmr.repository.StoreRef storeRef,
LuceneIndexer indexer)
Get a searcher over the index and the current delta
|
int |
getTermIndexInterval()
Lucene term index interval
|
ThreadPoolExecutor |
getThreadPoolExecutor()
Get the thread pool for index merging etc
|
int |
getTransactionTimeout() |
boolean |
getUseInMemorySort() |
boolean |
getUseNioMemoryMapping()
Use the nio memory mapping (work arounf for bugs with some JVMs)
|
long |
getWriteLockTimeout()
Get the write lock timeout
|
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() |
boolean |
isSameRM(XAResource xar) |
static void |
main(String[] args) |
int |
prepare()
Prepare the transaction TODO: Store prepare results
|
int |
prepare(Xid xid) |
Xid[] |
recover(int arg0) |
void |
rollback()
Roll back the transaction
|
void |
rollback(Xid xid) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setBulkLoader(NodeBulkLoader bulkLoader) |
void |
setCacheEnabled(boolean cacheEnabled) |
void |
setCommitLockTimeout(long timeout)
Set the lucene commit lock timeout (no longer used with lucene 2.1)
|
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)
Set the ML analysis mode at index time.
|
void |
setDefaultMLSearchAnalysisMode(org.alfresco.repo.search.MLAnalysisMode mode)
Set the ML analysis mode at search time
|
void |
setFairLocking(boolean fairLocking) |
void |
setIndexerBatchSize(int indexerBatchSize)
Set the batch six to use for background indexing
|
void |
setIndexerMaxFieldLength(int indexerMaxFieldLength)
Set the max field length.
|
void |
setIndexRootLocation(String indexRootLocation)
Set the directory that contains the indexes
|
void |
setLockDirectory(String lockDirectory)
Set the lock dir - just to make sure - this should no longer be used.
|
void |
setLockPollInterval(long time)
Set the lock poll interval in ms
|
void |
setMaxAtomicTransformationTime(long maxAtomicTransformationTime)
Set the maximum average transformation time allowed to a transformer in order to have the transformation
performed in the current transaction.
|
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 |
setMaxRawResultSetSizeForInMemorySort(int maxRawResultSetSizeForInMemorySort) |
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)
Set the max number of queries in a llucen boolean query
|
void |
setQueryRegister(QueryRegisterComponent queryRegister)
Set the query register
|
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
Set the tenant service
|
void |
setTermIndexInterval(int termIndexInterval) |
void |
setThreadPoolExecutor(ThreadPoolExecutor threadPoolExecutor) |
boolean |
setTransactionTimeout(int timeout) |
void |
setUseInMemorySort(boolean useInMemorySort) |
void |
setUseNioMemoryMapping(boolean useNioMemoryMapping) |
void |
setWriteLockTimeout(long timeout)
Set the lucene write lock timeout
|
void |
setWriterMaxBufferedDocs(int writerMaxBufferedDocs) |
void |
setWriterMaxMergeDocs(int writerMaxMergeDocs) |
void |
setWriterMergeFactor(int writerMergeFactor) |
void |
setWriterRamBufferSizeMb(double writerRamBufferSizeMb) |
void |
start(Xid xid,
int flag) |
getQueryLanguages, registerQueryLanguage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getQueryLanguages, registerQueryLanguage
public AbstractLuceneIndexerAndSearcherFactory()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public org.springframework.context.ConfigurableApplicationContext getApplicationContext()
LuceneConfig
getApplicationContext
in interface LuceneConfig
public void setIndexRootLocation(String indexRootLocation)
indexRootLocation
- Stringpublic void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
tenantService
- TenantServicepublic void setQueryRegister(QueryRegisterComponent queryRegister)
queryRegister
- QueryRegisterComponentpublic QueryRegisterComponent getQueryRegister()
public void setMaxAtomicTransformationTime(long maxAtomicTransformationTime)
setMaxAtomicTransformationTime
in interface LuceneConfig
maxAtomicTransformationTime
- the maximum average time that a text transformation may take in order to be performed atomically.public long getMaxTransformationTime()
getMaxTransformationTime
in interface LuceneConfig
public NodeBulkLoader getBulkLoader()
LuceneConfig
getBulkLoader
in interface LuceneConfig
public void setBulkLoader(NodeBulkLoader bulkLoader)
public LuceneIndexer getIndexer(org.alfresco.service.cmr.repository.StoreRef storeRef) throws IndexerException
getIndexer
in interface IndexerAndSearcher
storeRef
- -
the id of the storeIndexerException
protected abstract LuceneIndexer createIndexer(org.alfresco.service.cmr.repository.StoreRef storeRef, String deltaId)
storeRef
- StoreRefdeltaId
- Stringpublic LuceneSearcher getSearcher(org.alfresco.service.cmr.repository.StoreRef storeRef, boolean searchDelta) throws SearcherException
getSearcher
in interface IndexerAndSearcher
storeRef
- StoreRefsearchDelta
- -
serach the in progress transaction as well as the main index
(this is ignored for searches that do full text)SearcherException
protected abstract org.alfresco.service.cmr.search.SearchService getNodeSearcher() throws SearcherException
SearcherException
protected abstract LuceneSearcher getSearcher(org.alfresco.service.cmr.repository.StoreRef storeRef, LuceneIndexer indexer) throws SearcherException
storeRef
- StoreRefindexer
- LuceneIndexerSearcherException
public void commit(Xid xid, boolean onePhase) throws XAException
commit
in interface XAResource
XAException
public void end(Xid xid, int flag) throws XAException
end
in interface XAResource
XAException
public void forget(Xid xid) throws XAException
forget
in interface XAResource
XAException
public int getTransactionTimeout() throws XAException
getTransactionTimeout
in interface XAResource
XAException
public boolean isSameRM(XAResource xar) throws XAException
isSameRM
in interface XAResource
XAException
public int prepare(Xid xid) throws XAException
prepare
in interface XAResource
XAException
public Xid[] recover(int arg0) throws XAException
recover
in interface XAResource
XAException
public void rollback(Xid xid) throws XAException
rollback
in interface XAResource
XAException
public boolean setTransactionTimeout(int timeout) throws XAException
setTransactionTimeout
in interface XAResource
XAException
public void start(Xid xid, int flag) throws XAException
start
in interface XAResource
XAException
public void commit() throws IndexerException
commit
in interface LuceneIndexerAndSearcher
IndexerException
public int prepare() throws IndexerException
prepare
in interface LuceneIndexerAndSearcher
IndexerException
public void rollback()
rollback
in interface LuceneIndexerAndSearcher
public void flush()
IndexerAndSearcher
flush
in interface IndexerAndSearcher
public String getIndexRootLocation()
LuceneConfig
getIndexRootLocation
in interface LuceneConfig
public int getIndexerBatchSize()
LuceneConfig
getIndexerBatchSize
in interface LuceneConfig
public void setIndexerBatchSize(int indexerBatchSize)
setIndexerBatchSize
in interface LuceneConfig
indexerBatchSize
- intpublic String getLockDirectory()
public void setLockDirectory(String lockDirectory)
LuceneConfig
setLockDirectory
in interface LuceneConfig
lockDirectory
- Stringpublic int getQueryMaxClauses()
LuceneConfig
getQueryMaxClauses
in interface LuceneConfig
public void setQueryMaxClauses(int queryMaxClauses)
setQueryMaxClauses
in interface LuceneConfig
queryMaxClauses
- intpublic void setWriteLockTimeout(long timeout)
setWriteLockTimeout
in interface LuceneConfig
timeout
- longpublic void setCommitLockTimeout(long timeout)
setCommitLockTimeout
in interface LuceneConfig
timeout
- longpublic long getCommitLockTimeout()
getCommitLockTimeout
in interface LuceneConfig
public long getWriteLockTimeout()
getWriteLockTimeout
in interface LuceneConfig
public void setLockPollInterval(long time)
setLockPollInterval
in interface LuceneConfig
time
- longpublic int getIndexerMaxFieldLength()
getIndexerMaxFieldLength
in interface LuceneConfig
public void setIndexerMaxFieldLength(int indexerMaxFieldLength)
setIndexerMaxFieldLength
in interface LuceneConfig
indexerMaxFieldLength
- intpublic ThreadPoolExecutor getThreadPoolExecutor()
LuceneConfig
getThreadPoolExecutor
in interface LuceneConfig
public void setThreadPoolExecutor(ThreadPoolExecutor threadPoolExecutor)
public boolean getUseInMemorySort()
getUseInMemorySort
in interface LuceneConfig
public void setUseInMemorySort(boolean useInMemorySort)
useInMemorySort
- the useInMemorySort to setpublic int getMaxRawResultSetSizeForInMemorySort()
getMaxRawResultSetSizeForInMemorySort
in interface LuceneConfig
public void setMaxRawResultSetSizeForInMemorySort(int maxRawResultSetSizeForInMemorySort)
maxRawResultSetSizeForInMemorySort
- the maxRawResultSetSizeForInMemorySort to setpublic org.alfresco.repo.search.MLAnalysisMode getDefaultMLIndexAnalysisMode()
LuceneConfig
getDefaultMLIndexAnalysisMode
in interface LuceneConfig
public void setDefaultMLIndexAnalysisMode(org.alfresco.repo.search.MLAnalysisMode mode)
setDefaultMLIndexAnalysisMode
in interface LuceneConfig
mode
- MLAnalysisModepublic org.alfresco.repo.search.MLAnalysisMode getDefaultMLSearchAnalysisMode()
LuceneConfig
getDefaultMLSearchAnalysisMode
in interface LuceneConfig
public void setDefaultMLSearchAnalysisMode(org.alfresco.repo.search.MLAnalysisMode mode)
setDefaultMLSearchAnalysisMode
in interface LuceneConfig
mode
- MLAnalysisModepublic int getMaxDocIdCacheSize()
LuceneConfig
getMaxDocIdCacheSize
in interface LuceneConfig
public void setMaxDocIdCacheSize(int maxDocIdCacheSize)
setMaxDocIdCacheSize
in interface LuceneConfig
maxDocIdCacheSize
- intpublic int getMaxDocsForInMemoryMerge()
LuceneConfig
getMaxDocsForInMemoryMerge
in interface LuceneConfig
public void setMaxDocsForInMemoryMerge(int maxDocsForInMemoryMerge)
setMaxDocsForInMemoryMerge
in interface LuceneConfig
maxDocsForInMemoryMerge
- intpublic int getMaxDocumentCacheSize()
LuceneConfig
getMaxDocumentCacheSize
in interface LuceneConfig
public void setMaxDocumentCacheSize(int maxDocumentCacheSize)
setMaxDocumentCacheSize
in interface LuceneConfig
maxDocumentCacheSize
- intpublic int getMaxIsCategoryCacheSize()
LuceneConfig
getMaxIsCategoryCacheSize
in interface LuceneConfig
public void setMaxIsCategoryCacheSize(int maxIsCategoryCacheSize)
setMaxIsCategoryCacheSize
in interface LuceneConfig
maxIsCategoryCacheSize
- intpublic int getMaxLinkAspectCacheSize()
LuceneConfig
getMaxLinkAspectCacheSize
in interface LuceneConfig
public void setMaxLinkAspectCacheSize(int maxLinkAspectCacheSize)
setMaxLinkAspectCacheSize
in interface LuceneConfig
maxLinkAspectCacheSize
- intpublic int getMaxParentCacheSize()
LuceneConfig
getMaxParentCacheSize
in interface LuceneConfig
public void setMaxParentCacheSize(int maxParentCacheSize)
setMaxParentCacheSize
in interface LuceneConfig
maxParentCacheSize
- intpublic int getMaxPathCacheSize()
LuceneConfig
getMaxPathCacheSize
in interface LuceneConfig
public void setMaxPathCacheSize(int maxPathCacheSize)
setMaxPathCacheSize
in interface LuceneConfig
maxPathCacheSize
- intpublic int getMaxTypeCacheSize()
LuceneConfig
getMaxTypeCacheSize
in interface LuceneConfig
public void setMaxTypeCacheSize(int maxTypeCacheSize)
setMaxTypeCacheSize
in interface LuceneConfig
maxTypeCacheSize
- intpublic int getMergerMaxMergeDocs()
LuceneConfig
getMergerMaxMergeDocs
in interface LuceneConfig
public void setMergerMaxMergeDocs(int mergerMaxMergeDocs)
setMergerMaxMergeDocs
in interface LuceneConfig
mergerMaxMergeDocs
- intpublic int getMergerMergeFactor()
LuceneConfig
getMergerMergeFactor
in interface LuceneConfig
public void setMergerMergeFactor(int mergerMergeFactor)
setMergerMergeFactor
in interface LuceneConfig
mergerMergeFactor
- intpublic int getMergerMaxBufferedDocs()
LuceneConfig
getMergerMaxBufferedDocs
in interface LuceneConfig
public void setMergerMaxBufferedDocs(int mergerMaxBufferedDocs)
setMergerMaxBufferedDocs
in interface LuceneConfig
mergerMaxBufferedDocs
- intpublic int getMergerTargetIndexCount()
LuceneConfig
getMergerTargetIndexCount
in interface LuceneConfig
public void setMergerTargetIndexCount(int mergerTargetIndexCount)
setMergerTargetIndexCount
in interface LuceneConfig
mergerTargetIndexCount
- intpublic int getMergerTargetOverlayCount()
LuceneConfig
getMergerTargetOverlayCount
in interface LuceneConfig
public void setMergerTargetOverlayCount(int mergerTargetOverlayCount)
setMergerTargetOverlayCount
in interface LuceneConfig
mergerTargetOverlayCount
- intpublic int getMergerTargetOverlaysBlockingFactor()
LuceneConfig
getMergerTargetOverlaysBlockingFactor
in interface LuceneConfig
public void setMergerTargetOverlaysBlockingFactor(int mergerTargetOverlaysBlockingFactor)
setMergerTargetOverlaysBlockingFactor
in interface LuceneConfig
mergerTargetOverlaysBlockingFactor
- intpublic boolean getFairLocking()
LuceneConfig
false
since fair locking appears to cause deadlock on old JVMs.getFairLocking
in interface LuceneConfig
true
if a fair locking policy should be usedpublic void setFairLocking(boolean fairLocking)
setFairLocking
in interface LuceneConfig
fairLocking
- booleanpublic int getTermIndexInterval()
LuceneConfig
getTermIndexInterval
in interface LuceneConfig
public void setTermIndexInterval(int termIndexInterval)
setTermIndexInterval
in interface LuceneConfig
termIndexInterval
- intpublic boolean getUseNioMemoryMapping()
LuceneConfig
getUseNioMemoryMapping
in interface LuceneConfig
public void setUseNioMemoryMapping(boolean useNioMemoryMapping)
setUseNioMemoryMapping
in interface LuceneConfig
useNioMemoryMapping
- booleanpublic int getWriterMaxMergeDocs()
LuceneConfig
getWriterMaxMergeDocs
in interface LuceneConfig
public void setWriterMaxMergeDocs(int writerMaxMergeDocs)
setWriterMaxMergeDocs
in interface LuceneConfig
writerMaxMergeDocs
- intpublic int getWriterMergeFactor()
LuceneConfig
getWriterMergeFactor
in interface LuceneConfig
public void setWriterMergeFactor(int writerMergeFactor)
setWriterMergeFactor
in interface LuceneConfig
writerMergeFactor
- intpublic int getWriterMaxBufferedDocs()
LuceneConfig
getWriterMaxBufferedDocs
in interface LuceneConfig
public void setWriterMaxBufferedDocs(int writerMaxBufferedDocs)
setWriterMaxBufferedDocs
in interface LuceneConfig
writerMaxBufferedDocs
- intpublic boolean isCacheEnabled()
LuceneConfig
isCacheEnabled
in interface LuceneConfig
public void setCacheEnabled(boolean cacheEnabled)
setCacheEnabled
in interface LuceneConfig
cacheEnabled
- booleanpublic boolean getPostSortDateTime()
LuceneConfig
getPostSortDateTime
in interface LuceneConfig
public void setPostSortDateTime(boolean postSortDateTime)
setPostSortDateTime
in interface LuceneConfig
postSortDateTime
- booleanpublic int getMaxDocsForInMemoryIndex()
LuceneConfig
getMaxDocsForInMemoryIndex
in interface LuceneConfig
public void setMaxDocsForInMemoryIndex(int maxDocsForInMemoryIndex)
setMaxDocsForInMemoryIndex
in interface LuceneConfig
maxDocsForInMemoryIndex
- the maxDocsForInMemoryIndex to setpublic double getMaxRamInMbForInMemoryMerge()
LuceneConfig
getMaxRamInMbForInMemoryMerge
in interface LuceneConfig
public void setMaxRamInMbForInMemoryMerge(double maxRamInMbForInMemoryMerge)
setMaxRamInMbForInMemoryMerge
in interface LuceneConfig
maxRamInMbForInMemoryMerge
- the maxRamInMbForInMemoryMerge to setpublic double getMaxRamInMbForInMemoryIndex()
LuceneConfig
getMaxRamInMbForInMemoryIndex
in interface LuceneConfig
public void setMaxRamInMbForInMemoryIndex(double maxRamInMbForInMemoryIndex)
setMaxRamInMbForInMemoryIndex
in interface LuceneConfig
maxRamInMbForInMemoryIndex
- the maxRamInMbForInMemoryIndex to setpublic double getMergerRamBufferSizeMb()
LuceneConfig
getMergerRamBufferSizeMb
in interface LuceneConfig
public void setMergerRamBufferSizeMb(double mergerRamBufferSizeMb)
setMergerRamBufferSizeMb
in interface LuceneConfig
mergerRamBufferSizeMb
- the mergerRamBufferSizeMb to setpublic double getWriterRamBufferSizeMb()
LuceneConfig
getWriterRamBufferSizeMb
in interface LuceneConfig
public void setWriterRamBufferSizeMb(double writerRamBufferSizeMb)
setWriterRamBufferSizeMb
in interface LuceneConfig
writerRamBufferSizeMb
- the writerRamBufferSizeMb to setpublic boolean isContentIndexingEnabled()
isContentIndexingEnabled
in interface LuceneConfig
public void setContentIndexingEnabled(boolean contentIndexingEnabled)
LuceneConfig
setContentIndexingEnabled
in interface LuceneConfig
contentIndexingEnabled
- booleanprotected LuceneQueryLanguageSPI getQueryLanguage(String name)
protected abstract List<org.alfresco.service.cmr.repository.StoreRef> getAllStores()
public <R> R doReadOnly(LuceneIndexerAndSearcher.ReadOnlyWork<R> lockWork)
doReadOnly
in interface LuceneIndexerAndSearcher
public static void main(String[] args) throws IOException
IOException
public static void deleteDirectory(File directory) throws IOException
IOException
Copyright © 2005–2017 Alfresco Software. All rights reserved.