org.alfresco.repo.search
Interface IndexerAndSearcher

All Known Subinterfaces:
LuceneIndexerAndSearcher
All Known Implementing Classes:
AbstractIndexerAndSearcher, AbstractLuceneIndexerAndSearcherFactory, ADMLuceneIndexerAndSearcherFactory, ADMLuceneUnIndexedIndexAndSearcherFactory, AVMLuceneIndexerAndSearcherFactory, NoIndexIndexerAndSearcherFactory, SolrIndexerAndSearcherFactory

public interface IndexerAndSearcher

Interface for Indexer and Searcher Factories to implement


Method Summary
 void flush()
          Do any indexing that may be pending on behalf of the current transaction.
 Indexer getIndexer(org.alfresco.service.cmr.repository.StoreRef storeRef)
          Get an indexer for a store
 java.util.Map getQueryLanguages()
           
 org.alfresco.service.cmr.search.SearchService getSearcher(org.alfresco.service.cmr.repository.StoreRef storeRef, boolean searchDelta)
          Get a searcher for a store
 void registerQueryLanguage(LuceneQueryLanguageSPI luceneQueryLanguageSPI)
           
 

Method Detail

getIndexer

Indexer getIndexer(org.alfresco.service.cmr.repository.StoreRef storeRef)
                   throws IndexerException
Get an indexer for a store

Parameters:
storeRef -
Returns:
Throws:
IndexerException

getSearcher

org.alfresco.service.cmr.search.SearchService getSearcher(org.alfresco.service.cmr.repository.StoreRef storeRef,
                                                          boolean searchDelta)
                                                          throws SearcherException
Get a searcher for a store

Parameters:
storeRef -
searchDelta - - serach the in progress transaction as well as the main index (this is ignored for searches that do full text)
Returns:
Throws:
SearcherException

flush

void flush()
Do any indexing that may be pending on behalf of the current transaction.


registerQueryLanguage

void registerQueryLanguage(LuceneQueryLanguageSPI luceneQueryLanguageSPI)
Parameters:
luceneAlfrescoFtsQueryLanguage -

getQueryLanguages

java.util.Map getQueryLanguages()
Returns:


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