|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.search.AbstractSearcherComponent
org.alfresco.repo.search.SearcherComponent
public class SearcherComponent
Component API for searching. Delegates to the real searcher
from the SearcherComponent.indexerAndSearcherFactory.
Transactional support is free.
| Field Summary |
|---|
| Fields inherited from interface org.alfresco.service.cmr.search.SearchService |
|---|
LANGUAGE_CMIS_ALFRESCO, LANGUAGE_CMIS_STRICT, LANGUAGE_FTS_ALFRESCO, LANGUAGE_JCR_XPATH, LANGUAGE_LUCENE, LANGUAGE_XPATH |
| Constructor Summary | |
|---|---|
SearcherComponent()
|
|
| Method Summary | |
|---|---|
boolean |
contains(NodeRef nodeRef,
QName propertyQName,
java.lang.String googleLikePattern)
Search for string pattern in both the node text (if present) and node properties |
boolean |
contains(NodeRef nodeRef,
QName propertyQName,
java.lang.String googleLikePattern,
SearchParameters.Operator defaultOperator)
Search for string pattern in both the node text (if present) and node properties |
boolean |
like(NodeRef nodeRef,
QName propertyQName,
java.lang.String sqlLikePattern,
boolean includeFTS)
Search for string pattern in both the node text (if present) and node properties |
ResultSet |
query(SearchParameters searchParameters)
Search using the given SearchParameters |
ResultSet |
query(StoreRef store,
QName queryId,
QueryParameter[] queryParameters)
Execute a canned query |
ResultSet |
query(StoreRef store,
java.lang.String language,
java.lang.String query,
QueryParameterDefinition[] queryParameterDefinitions)
Search against a store. |
java.util.List |
selectNodes(NodeRef contextNodeRef,
java.lang.String xpath,
QueryParameterDefinition[] parameters,
NamespacePrefixResolver namespacePrefixResolver,
boolean followAllParentLinks,
java.lang.String language)
Select nodes using an xpath expression. |
java.util.List |
selectProperties(NodeRef contextNodeRef,
java.lang.String xpath,
QueryParameterDefinition[] parameters,
NamespacePrefixResolver namespacePrefixResolver,
boolean followAllParentLinks,
java.lang.String language)
Select properties using an xpath expression |
void |
setIndexerAndSearcherFactory(IndexerAndSearcher indexerAndSearcherFactory)
|
| Methods inherited from class org.alfresco.repo.search.AbstractSearcherComponent |
|---|
query, selectNodes, selectProperties, translateQuery |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SearcherComponent()
| Method Detail |
|---|
public void setIndexerAndSearcherFactory(IndexerAndSearcher indexerAndSearcherFactory)
public ResultSet query(StoreRef store,
QName queryId,
QueryParameter[] queryParameters)
SearchService
store - -
the store against which to searchqueryId - -
the query identifierqueryParameters - -
parameterisation for the canned query
public ResultSet query(StoreRef store,
java.lang.String language,
java.lang.String query,
QueryParameterDefinition[] queryParameterDefinitions)
SearchService
store - -
the store against which to searchlanguage - -
the query languagequery - -
the query string - which may include parameters
public ResultSet query(SearchParameters searchParameters)
SearchService
public boolean contains(NodeRef nodeRef,
QName propertyQName,
java.lang.String googleLikePattern)
throws InvalidNodeRefException
SearchService
nodeRef - the node to getpropertyQName - the name of the propertygoogleLikePattern - a Google-like pattern to search for in the property value
InvalidNodeRefException
public boolean contains(NodeRef nodeRef,
QName propertyQName,
java.lang.String googleLikePattern,
SearchParameters.Operator defaultOperator)
throws InvalidNodeRefException
SearchService
nodeRef - the node to getpropertyQName - the name of the propertygoogleLikePattern - a Google-like pattern to search for in the property value
InvalidNodeRefException
public boolean like(NodeRef nodeRef,
QName propertyQName,
java.lang.String sqlLikePattern,
boolean includeFTS)
throws InvalidNodeRefException
SearchService
nodeRef - the node to getpropertyQName - the name of the property (mandatory)sqlLikePattern - a SQL-like pattern to search forincludeFTS - -
include full text search matches in the like test
InvalidNodeRefException
public java.util.List selectNodes(NodeRef contextNodeRef,
java.lang.String xpath,
QueryParameterDefinition[] parameters,
NamespacePrefixResolver namespacePrefixResolver,
boolean followAllParentLinks,
java.lang.String language)
throws InvalidNodeRefException,
XPathException
SearchService
contextNodeRef - -
the context node for relative expressions etcxpath - -
the xpath string to evaluateparameters - -
parameters to bind in to the xpath expressionnamespacePrefixResolver - -
prefix to namespace mappingsfollowAllParentLinks - -
if false ".." follows only the primary parent links, if true
it follows all
InvalidNodeRefException
XPathException
public java.util.List selectProperties(NodeRef contextNodeRef,
java.lang.String xpath,
QueryParameterDefinition[] parameters,
NamespacePrefixResolver namespacePrefixResolver,
boolean followAllParentLinks,
java.lang.String language)
throws InvalidNodeRefException,
XPathException
SearchService
contextNodeRef - -
the context node for relative expressions etcxpath - -
the xpath string to evaluateparameters - -
parameters to bind in to the xpath expressionnamespacePrefixResolver - -
prefix to namespace mappingsfollowAllParentLinks - -
if false ".." follows only the primary parent links, if true
it follows all
InvalidNodeRefException
XPathException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||