Package org.alfresco.repo.search
Class AbstractSearcherComponent
- java.lang.Object
-
- org.alfresco.repo.search.AbstractSearcherComponent
-
- All Implemented Interfaces:
SearchService
- Direct Known Subclasses:
SearcherComponent
public abstract class AbstractSearcherComponent extends Object implements SearchService
Provides basic searcher support- Author:
- Andy Hind
-
-
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 AbstractSearcherComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultSetquery(StoreRef store, String language, String query)List<NodeRef>selectNodes(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks)List<Serializable>selectProperties(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks)protected StringtranslateQuery(String fromLanguage, String toLangage, String query)Not implemented, but will eventually map directly toSearchLanguageConversion.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.service.cmr.search.SearchService
contains, contains, like, query, query, query, selectNodes, selectProperties
-
-
-
-
Method Detail
-
translateQuery
protected String translateQuery(String fromLanguage, String toLangage, String query)
Not implemented, but will eventually map directly toSearchLanguageConversion.
-
query
public ResultSet query(StoreRef store, String language, String 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
-
selectProperties
public List<Serializable> selectProperties(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks) throws InvalidNodeRefException, XPathException
- Specified by:
selectPropertiesin interfaceSearchService- Throws:
InvalidNodeRefExceptionXPathException
-
-