org.alfresco.repo.search.impl.lucene
Class AVMLuceneIndexerAndSearcherFactory

java.lang.Object
  extended by org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerAndSearcherFactory
      extended by org.alfresco.repo.search.impl.lucene.AVMLuceneIndexerAndSearcherFactory
All Implemented Interfaces:
javax.transaction.xa.XAResource, LuceneConfig, LuceneIndexerAndSearcher, IndexerAndSearcher, SupportsBackgroundIndexing, org.springframework.context.ApplicationContextAware

public class AVMLuceneIndexerAndSearcherFactory
extends AbstractLuceneIndexerAndSearcherFactory
implements SupportsBackgroundIndexing

Factory for AVM indexers and searchers


Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerAndSearcherFactory
AbstractLuceneIndexerAndSearcherFactory.LuceneIndexBackupComponent, AbstractLuceneIndexerAndSearcherFactory.LuceneIndexBackupJob
 
Nested classes/interfaces inherited from interface org.alfresco.repo.search.impl.lucene.LuceneIndexerAndSearcher
LuceneIndexerAndSearcher.WithAllWriteLocksWork
 
Field Summary
 
Fields inherited from class org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerAndSearcherFactory
queryLanguages, tenantService
 
Fields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
 
Constructor Summary
AVMLuceneIndexerAndSearcherFactory()
           
 
Method Summary
protected  LuceneIndexer createIndexer(StoreRef storeRef, java.lang.String deltaId)
          Encapsulate creating an indexer
protected  java.util.List getAllStores()
           
protected  SearchService getNodeSearcher()
          Get node-based searcher (for "selectNodes / selectProperties")
protected  LuceneSearcher getSearcher(StoreRef storeRef, LuceneIndexer indexer)
          Get a searcher over the index and the current delta
 void setAvmService(AVMService avmService)
          Set the AVM service
 void setAvmSyncService(AVMSyncService avmSyncService)
          Set the AVM sync service
 void setContentService(ContentService contentService)
          Set the content service
 void setContentStore(ContentStore contentStore)
          Set the content service
 void setDictionaryService(DictionaryService dictionaryService)
          Set the dictionary service
 void setFullTextSearchIndexer(FullTextSearchIndexer fullTextSearchIndexer)
          Register the full text searcher (done by the seracher bean to break cyclic bean defs)
 void setNameSpaceService(NamespaceService nameSpaceService)
          Set the name space service
 void setNodeService(NodeService nodeService)
          Set the node service
 
Methods inherited from class org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerAndSearcherFactory
commit, commit, deleteDirectory, doWithAllWriteLocks, end, flush, forget, getApplicationContext, getBulkLoader, getCommitLockTimeout, getDefaultMLIndexAnalysisMode, getDefaultMLSearchAnalysisMode, getIndexer, getIndexerBatchSize, getIndexerMaxFieldLength, getIndexRootLocation, getLockDirectory, getMaxDocIdCacheSize, getMaxDocsForInMemoryIndex, getMaxDocsForInMemoryMerge, getMaxDocumentCacheSize, getMaxIsCategoryCacheSize, getMaxLinkAspectCacheSize, getMaxParentCacheSize, getMaxPathCacheSize, getMaxRamInMbForInMemoryIndex, getMaxRamInMbForInMemoryMerge, getMaxTransformationTime, getMaxTypeCacheSize, getMergerMaxBufferedDocs, getMergerMaxMergeDocs, getMergerMergeBlockingFactor, getMergerMergeFactor, getMergerRamBufferSizeMb, getMergerTargetIndexCount, getMergerTargetOverlayCount, getMergerTargetOverlaysBlockingFactor, getPostSortDateTime, getQueryLanguage, getQueryMaxClauses, getQueryRegister, getSearcher, getTermIndexInterval, getThreadPoolExecutor, getTransactionTimeout, getUseNioMemoryMapping, getWriteLockTimeout, getWriterMaxBufferedDocs, getWriterMaxMergeDocs, getWriterMergeFactor, getWriterRamBufferSizeMb, isCacheEnabled, isSameRM, main, prepare, prepare, recover, registerQueryLanguage, rollback, rollback, setApplicationContext, setBulkLoader, setCacheEnabled, setCommitLockTimeout, setDefaultMLIndexAnalysisMode, setDefaultMLSearchAnalysisMode, setIndexerBatchSize, setIndexerMaxFieldLength, setIndexRootLocation, setLockDirectory, setLockPollInterval, setMaxAtomicTransformationTime, setMaxDocIdCacheSize, setMaxDocsForInMemoryIndex, setMaxDocsForInMemoryMerge, setMaxDocumentCacheSize, setMaxIsCategoryCacheSize, setMaxLinkAspectCacheSize, setMaxParentCacheSize, setMaxPathCacheSize, setMaxRamInMbForInMemoryIndex, setMaxRamInMbForInMemoryMerge, setMaxTypeCacheSize, setMergerMaxBufferedDocs, setMergerMaxMergeDocs, setMergerMergeBlockingFactor, setMergerMergeFactor, setMergerRamBufferSizeMb, setMergerTargetIndexCount, setMergerTargetOverlayCount, setMergerTargetOverlaysBlockingFactor, setPostSortDateTime, setQueryMaxClauses, setQueryRegister, setTenantService, setTermIndexInterval, setThreadPoolExecutor, setTransactionTimeout, setUseNioMemoryMapping, setWriteLockTimeout, setWriterMaxBufferedDocs, setWriterMaxMergeDocs, setWriterMergeFactor, setWriterRamBufferSizeMb, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AVMLuceneIndexerAndSearcherFactory

public AVMLuceneIndexerAndSearcherFactory()
Method Detail

setDictionaryService

public void setDictionaryService(DictionaryService dictionaryService)
Set the dictionary service

Parameters:
dictionaryService -

setNameSpaceService

public void setNameSpaceService(NamespaceService nameSpaceService)
Set the name space service

Parameters:
nameSpaceService -

setContentService

public void setContentService(ContentService contentService)
Set the content service

Parameters:
contentService -

setAvmService

public void setAvmService(AVMService avmService)
Set the AVM service

Parameters:
avmService -

setAvmSyncService

public void setAvmSyncService(AVMSyncService avmSyncService)
Set the AVM sync service

Parameters:
avmSyncService -

setNodeService

public void setNodeService(NodeService nodeService)
Set the node service

Parameters:
nodeService -

setContentStore

public void setContentStore(ContentStore contentStore)
Set the content service

Parameters:
contentStore -

createIndexer

protected LuceneIndexer createIndexer(StoreRef storeRef,
                                      java.lang.String deltaId)
Description copied from class: AbstractLuceneIndexerAndSearcherFactory
Encapsulate creating an indexer

Specified by:
createIndexer in class AbstractLuceneIndexerAndSearcherFactory
Returns:
- the indexer made by the concrete implemntation

getAllStores

protected java.util.List getAllStores()
Specified by:
getAllStores in class AbstractLuceneIndexerAndSearcherFactory

getSearcher

protected LuceneSearcher getSearcher(StoreRef storeRef,
                                     LuceneIndexer indexer)
                              throws SearcherException
Description copied from class: AbstractLuceneIndexerAndSearcherFactory
Get a searcher over the index and the current delta

Specified by:
getSearcher in class AbstractLuceneIndexerAndSearcherFactory
Returns:
- the searcher made by the concrete implementation.
Throws:
SearcherException

getNodeSearcher

protected SearchService getNodeSearcher()
                                 throws SearcherException
Description copied from class: AbstractLuceneIndexerAndSearcherFactory
Get node-based searcher (for "selectNodes / selectProperties")

Specified by:
getNodeSearcher in class AbstractLuceneIndexerAndSearcherFactory
Throws:
SearcherException

setFullTextSearchIndexer

public void setFullTextSearchIndexer(FullTextSearchIndexer fullTextSearchIndexer)
Register the full text searcher (done by the seracher bean to break cyclic bean defs)

Specified by:
setFullTextSearchIndexer in interface SupportsBackgroundIndexing


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.