Class LuceneQueryEngine
- java.lang.Object
-
- org.alfresco.repo.search.impl.querymodel.impl.lucene.LuceneQueryEngine
-
- All Implemented Interfaces:
QueryEngine
public class LuceneQueryEngine extends Object implements QueryEngine
- Author:
- andyh
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Loglogger
-
Constructor Summary
Constructors Constructor Description LuceneQueryEngine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryEngineResultsexecuteQuery(Query query, QueryOptions options, FunctionEvaluationContext functionContext)intgetMaxRawResultSetSizeForInMemorySort()QueryModelFactorygetQueryModelFactory()booleanisUseInMemorySort()voidsetDictionaryService(DictionaryService dictionaryService)voidsetIndexAndSearcher(LuceneIndexerAndSearcher indexAndSearcher)voidsetMaxRawResultSetSizeForInMemorySort(int maxRawResultSetSizeForInMemorySort)voidsetNamespaceService(NamespaceService namespaceService)voidsetNodeService(NodeService nodeService)voidsetTenantService(TenantService tenantService)voidsetUseInMemorySort(boolean useInMemorySort)
-
-
-
Method Detail
-
setDictionaryService
public void setDictionaryService(DictionaryService dictionaryService)
- Parameters:
dictionaryService- the dictionaryService to set
-
setIndexAndSearcher
public void setIndexAndSearcher(LuceneIndexerAndSearcher indexAndSearcher)
- Parameters:
indexAndSearcher- the indexAndSearcher to set
-
setNodeService
public void setNodeService(NodeService nodeService)
- Parameters:
nodeService- the nodeService to set
-
setTenantService
public void setTenantService(TenantService tenantService)
- Parameters:
tenantService- the tenantService to set
-
setNamespaceService
public void setNamespaceService(NamespaceService namespaceService)
- Parameters:
namespaceService- the namespaceService to set
-
getQueryModelFactory
public QueryModelFactory getQueryModelFactory()
- Specified by:
getQueryModelFactoryin interfaceQueryEngine
-
isUseInMemorySort
public boolean isUseInMemorySort()
- Returns:
- the useInMemorySort
-
setUseInMemorySort
public void setUseInMemorySort(boolean useInMemorySort)
- Parameters:
useInMemorySort- the useInMemorySort to set
-
getMaxRawResultSetSizeForInMemorySort
public int getMaxRawResultSetSizeForInMemorySort()
- Returns:
- the maxRawResultSetSizeForInMemorySort
-
setMaxRawResultSetSizeForInMemorySort
public void setMaxRawResultSetSizeForInMemorySort(int maxRawResultSetSizeForInMemorySort)
- Parameters:
maxRawResultSetSizeForInMemorySort- the maxRawResultSetSizeForInMemorySort to set
-
executeQuery
public QueryEngineResults executeQuery(Query query, QueryOptions options, FunctionEvaluationContext functionContext)
- Specified by:
executeQueryin interfaceQueryEngine
-
-