Class SolrSearchService
java.lang.Object
org.alfresco.repo.search.impl.solr.SolrSearchService
- All Implemented Interfaces:
SearchService
- Direct Known Subclasses:
NoIndexSearchService
- Author:
- Andy
-
Field Summary
Fields inherited from interface org.alfresco.service.cmr.search.SearchService
LANGUAGE_CMIS_ALFRESCO, LANGUAGE_CMIS_STRICT, LANGUAGE_FTS_ALFRESCO, LANGUAGE_INDEX_ALFRESCO, LANGUAGE_INDEX_CMIS, LANGUAGE_INDEX_FTS_ALFRESCO, LANGUAGE_INDEX_SQL, LANGUAGE_LUCENE, LANGUAGE_SOLR_ALFRESCO, LANGUAGE_SOLR_CMIS, LANGUAGE_SOLR_FTS_ALFRESCO, LANGUAGE_SOLR_SQL, LANGUAGE_XPATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancontains(NodeRef nodeRef, QName propertyQName, String googleLikePattern, SearchParameters.Operator defaultOperator) booleanquery(StoreRef store, String language, String query, QueryParameterDefinition[] queryParameterDefinitions) query(StoreRef store, QName queryId, QueryParameter[] queryParameters) query(SearchParameters searchParameters) selectNodes(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks) selectNodes(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks, String language) selectProperties(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks) selectProperties(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks, String language) voidsetDictionaryService(DictionaryService dictionaryService) voidsetNamespacePrefixResolver(NamespacePrefixResolver namespacePrefixResolver) voidsetNodeService(NodeService nodeService) voidsetQueryLanguages(Map<String, LuceneQueryLanguageSPI> queryLanguages) voidsetQueryRegister(QueryRegisterComponent queryRegister)
-
Constructor Details
-
SolrSearchService
public SolrSearchService()
-
-
Method Details
-
getNodeService
-
setNodeService
-
getNamespacePrefixResolver
-
setNamespacePrefixResolver
-
getDictionaryService
-
setDictionaryService
-
getQueryLanguages
-
setQueryLanguages
-
getQueryRegister
-
setQueryRegister
-
query
- Specified by:
queryin interfaceSearchService
-
query
public ResultSet query(StoreRef store, String language, String query, QueryParameterDefinition[] queryParameterDefinitions) - Specified by:
queryin interfaceSearchService
-
query
- Specified by:
queryin interfaceSearchService
-
query
- Specified by:
queryin interfaceSearchService
-
selectNodes
public List<NodeRef> selectNodes(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks) throws InvalidNodeRefException, XPathException - Specified by:
selectNodesin interfaceSearchService- Throws:
InvalidNodeRefExceptionXPathException
-
selectNodes
public List<NodeRef> selectNodes(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks, String language) throws InvalidNodeRefException, XPathException - Specified by:
selectNodesin interfaceSearchService- Throws:
InvalidNodeRefExceptionXPathException
-
selectProperties
public List<Serializable> selectProperties(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks) throws InvalidNodeRefException, XPathException - Specified by:
selectPropertiesin interfaceSearchService- Throws:
InvalidNodeRefExceptionXPathException
-
selectProperties
public List<Serializable> selectProperties(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks, String language) throws InvalidNodeRefException, XPathException - Specified by:
selectPropertiesin interfaceSearchService- Throws:
InvalidNodeRefExceptionXPathException
-
contains
public boolean contains(NodeRef nodeRef, QName propertyQName, String googleLikePattern) throws InvalidNodeRefException - Specified by:
containsin interfaceSearchService- Throws:
InvalidNodeRefException
-
contains
public boolean contains(NodeRef nodeRef, QName propertyQName, String googleLikePattern, SearchParameters.Operator defaultOperator) throws InvalidNodeRefException - Specified by:
containsin interfaceSearchService- Throws:
InvalidNodeRefException
-
like
public boolean like(NodeRef nodeRef, QName propertyQName, String sqlLikePattern, boolean includeFTS) throws InvalidNodeRefException - Specified by:
likein interfaceSearchService- Throws:
InvalidNodeRefException
-