Class SolrSearchService
- java.lang.Object
-
- org.alfresco.repo.search.impl.solr.SolrSearchService
-
- All Implemented Interfaces:
SearchService
- Direct Known Subclasses:
NoIndexSearchService
public class SolrSearchService extends Object implements SearchService
- Author:
- Andy
-
-
Field Summary
-
Fields inherited from interface org.alfresco.service.cmr.search.SearchService
LANGUAGE_CMIS_ALFRESCO, LANGUAGE_CMIS_STRICT, LANGUAGE_FTS_ALFRESCO, LANGUAGE_LUCENE, LANGUAGE_SOLR_ALFRESCO, LANGUAGE_SOLR_CMIS, LANGUAGE_SOLR_FTS_ALFRESCO, LANGUAGE_SOLR_SQL, LANGUAGE_XPATH
-
-
Constructor Summary
Constructors Constructor Description SolrSearchService()
-
Method Summary
-
-
-
Method Detail
-
getNodeService
public NodeService getNodeService()
-
setNodeService
public void setNodeService(NodeService nodeService)
-
getNamespacePrefixResolver
public NamespacePrefixResolver getNamespacePrefixResolver()
-
setNamespacePrefixResolver
public void setNamespacePrefixResolver(NamespacePrefixResolver namespacePrefixResolver)
-
getDictionaryService
public DictionaryService getDictionaryService()
-
setDictionaryService
public void setDictionaryService(DictionaryService dictionaryService)
-
getQueryLanguages
public Map<String,LuceneQueryLanguageSPI> getQueryLanguages()
-
setQueryLanguages
public void setQueryLanguages(Map<String,LuceneQueryLanguageSPI> queryLanguages)
-
getQueryRegister
public QueryRegisterComponent getQueryRegister()
-
setQueryRegister
public void setQueryRegister(QueryRegisterComponent queryRegister)
-
query
public ResultSet query(StoreRef store, String language, String query)
- Specified by:
queryin interfaceSearchService
-
query
public ResultSet query(StoreRef store, String language, String query, QueryParameterDefinition[] queryParameterDefinitions)
- Specified by:
queryin interfaceSearchService
-
query
public ResultSet query(StoreRef store, QName queryId, QueryParameter[] queryParameters)
- Specified by:
queryin interfaceSearchService
-
query
public ResultSet query(SearchParameters searchParameters)
- 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
-
-