Package org.alfresco.repo.search
Class SearcherComponent
- java.lang.Object
-
- org.alfresco.repo.search.AbstractSearcherComponent
-
- org.alfresco.repo.search.SearcherComponent
-
- All Implemented Interfaces:
SearchService
public class SearcherComponent extends AbstractSearcherComponent
Component API for searching. Delegates to the realsearcherfrom theindexerAndSearcherFactory. Transactional support is free.- Author:
- andyh
-
-
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 SearcherComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(NodeRef nodeRef, QName propertyQName, String googleLikePattern)booleancontains(NodeRef nodeRef, QName propertyQName, String googleLikePattern, SearchParameters.Operator defaultOperator)booleanlike(NodeRef nodeRef, QName propertyQName, String sqlLikePattern, boolean includeFTS)ResultSetquery(StoreRef store, String language, String query, QueryParameterDefinition[] queryParameterDefinitions)ResultSetquery(StoreRef store, QName queryId, QueryParameter[] queryParameters)ResultSetquery(SearchParameters searchParameters)List<NodeRef>selectNodes(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks, String language)List<Serializable>selectProperties(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks, String language)voidsetIndexerAndSearcherFactory(IndexerAndSearcher indexerAndSearcherFactory)-
Methods inherited from class org.alfresco.repo.search.AbstractSearcherComponent
query, selectNodes, selectProperties, translateQuery
-
-
-
-
Method Detail
-
setIndexerAndSearcherFactory
public void setIndexerAndSearcherFactory(IndexerAndSearcher indexerAndSearcherFactory)
-
query
public ResultSet query(StoreRef store, QName queryId, QueryParameter[] queryParameters)
-
query
public ResultSet query(StoreRef store, String language, String query, QueryParameterDefinition[] queryParameterDefinitions)
-
query
public ResultSet query(SearchParameters searchParameters)
-
contains
public boolean contains(NodeRef nodeRef, QName propertyQName, String googleLikePattern) throws InvalidNodeRefException
- Throws:
InvalidNodeRefException
-
contains
public boolean contains(NodeRef nodeRef, QName propertyQName, String googleLikePattern, SearchParameters.Operator defaultOperator) throws InvalidNodeRefException
- Throws:
InvalidNodeRefException
-
like
public boolean like(NodeRef nodeRef, QName propertyQName, String sqlLikePattern, boolean includeFTS) throws InvalidNodeRefException
- Throws:
InvalidNodeRefException
-
selectNodes
public List<NodeRef> selectNodes(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks, String language) throws InvalidNodeRefException, XPathException
-
selectProperties
public List<Serializable> selectProperties(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks, String language) throws InvalidNodeRefException, XPathException
-
-