Class LuceneQueryEngine

  • All Implemented Interfaces:
    org.alfresco.repo.search.impl.querymodel.QueryEngine

    public class LuceneQueryEngine
    extends java.lang.Object
    implements org.alfresco.repo.search.impl.querymodel.QueryEngine
    Author:
    andyh
    • Field Detail

      • logger

        protected static final org.apache.commons.logging.Log logger
    • Constructor Detail

      • LuceneQueryEngine

        public LuceneQueryEngine()
    • Method Detail

      • setDictionaryService

        public void setDictionaryService​(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
        Parameters:
        dictionaryService - the dictionaryService to set
      • setIndexAndSearcher

        public void setIndexAndSearcher​(LuceneIndexerAndSearcher indexAndSearcher)
        Parameters:
        indexAndSearcher - the indexAndSearcher to set
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
        Parameters:
        nodeService - the nodeService to set
      • setTenantService

        public void setTenantService​(org.alfresco.repo.tenant.TenantService tenantService)
        Parameters:
        tenantService - the tenantService to set
      • setNamespaceService

        public void setNamespaceService​(org.alfresco.service.namespace.NamespaceService namespaceService)
        Parameters:
        namespaceService - the namespaceService to set
      • getQueryModelFactory

        public org.alfresco.repo.search.impl.querymodel.QueryModelFactory getQueryModelFactory()
        Specified by:
        getQueryModelFactory in interface org.alfresco.repo.search.impl.querymodel.QueryEngine
      • 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 org.alfresco.repo.search.impl.querymodel.QueryEngineResults executeQuery​(org.alfresco.repo.search.impl.querymodel.Query query,
                                                                                        org.alfresco.repo.search.impl.querymodel.QueryOptions options,
                                                                                        org.alfresco.repo.search.impl.querymodel.FunctionEvaluationContext functionContext)
        Specified by:
        executeQuery in interface org.alfresco.repo.search.impl.querymodel.QueryEngine