public class ADMLuceneSearcherImpl extends AbstractLuceneBase implements LuceneSearcher
deltaId, store
Constructor and Description |
---|
ADMLuceneSearcherImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName propertyQName,
String googleLikePattern) |
boolean |
contains(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName propertyQName,
String googleLikePattern,
org.alfresco.service.cmr.search.SearchParameters.Operator defaultOperator) |
protected String |
findSortField(org.alfresco.service.cmr.search.SearchParameters searchParameters,
ClosingIndexSearcher searcher,
String field,
Locale sortLocale) |
ClosingIndexSearcher |
getClosingIndexSearcher()
Get a lucene searcher
|
org.alfresco.service.namespace.NamespacePrefixResolver |
getNamespacePrefixResolver() |
static ADMLuceneSearcherImpl |
getNodeSearcher()
Get a select-node-based searcher
|
org.alfresco.service.cmr.repository.NodeService |
getNodeService() |
QueryRegisterComponent |
getQueryRegister() |
static ADMLuceneSearcherImpl |
getSearcher(org.alfresco.service.cmr.repository.StoreRef storeRef,
LuceneConfig config)
Get an intialised searcher for the store.
|
static ADMLuceneSearcherImpl |
getSearcher(org.alfresco.service.cmr.repository.StoreRef storeRef,
LuceneIndexer indexer,
LuceneConfig config)
Get an initialised searcher for the store and transaction Normally we do not search against a a store and delta.
|
org.alfresco.repo.tenant.TenantService |
getTenantService() |
List<org.alfresco.util.Pair<String,Integer>> |
getTopTerms(String field,
int count)
Get top terms
|
boolean |
indexExists()
Check if the index exists
|
boolean |
like(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName propertyQName,
String sqlLikePattern,
boolean includeFTS) |
org.alfresco.service.cmr.search.ResultSet |
query(org.alfresco.service.cmr.search.SearchParameters searchParameters) |
org.alfresco.service.cmr.search.ResultSet |
query(org.alfresco.service.cmr.repository.StoreRef store,
org.alfresco.service.namespace.QName queryId,
org.alfresco.service.cmr.search.QueryParameter[] queryParameters) |
org.alfresco.service.cmr.search.ResultSet |
query(org.alfresco.service.cmr.repository.StoreRef store,
String language,
String query) |
org.alfresco.service.cmr.search.ResultSet |
query(org.alfresco.service.cmr.repository.StoreRef store,
String language,
String queryString,
org.alfresco.service.cmr.search.QueryParameterDefinition[] queryParameterDefinitions) |
List<org.alfresco.service.cmr.repository.NodeRef> |
selectNodes(org.alfresco.service.cmr.repository.NodeRef contextNodeRef,
String xpath,
org.alfresco.service.cmr.search.QueryParameterDefinition[] parameters,
org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver,
boolean followAllParentLinks) |
List<org.alfresco.service.cmr.repository.NodeRef> |
selectNodes(org.alfresco.service.cmr.repository.NodeRef contextNodeRef,
String xpath,
org.alfresco.service.cmr.search.QueryParameterDefinition[] parameters,
org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver,
boolean followAllParentLinks,
String language) |
List<Serializable> |
selectProperties(org.alfresco.service.cmr.repository.NodeRef contextNodeRef,
String xpath,
org.alfresco.service.cmr.search.QueryParameterDefinition[] parameters,
org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver,
boolean followAllParentLinks) |
List<Serializable> |
selectProperties(org.alfresco.service.cmr.repository.NodeRef contextNodeRef,
String xpath,
org.alfresco.service.cmr.search.QueryParameterDefinition[] parameters,
org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver,
boolean followAllParentLinks,
String language) |
void |
setNamespacePrefixResolver(org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver)
Set the name space service
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Ste the node service
|
void |
setQueryLanguages(Map<String,LuceneQueryLanguageSPI> queryLanguages) |
void |
setQueryRegister(QueryRegisterComponent queryRegister)
Set the query register
|
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
closeDeltaReader, closeDeltaWriter, deleteIndex, doReadOnly, getDeltaId, getDeltaReader, getDeltaWriter, getDictionaryService, getLuceneConfig, getReader, getSearcher, getSearcher, getStatus, initialise, saveDelta, setDictionaryService, setInfo, setLuceneConfig, setStatus
public static ADMLuceneSearcherImpl getSearcher(org.alfresco.service.cmr.repository.StoreRef storeRef, LuceneIndexer indexer, LuceneConfig config)
storeRef
- StoreRefindexer
- LuceneIndexerconfig
- LuceneConfigpublic static ADMLuceneSearcherImpl getSearcher(org.alfresco.service.cmr.repository.StoreRef storeRef, LuceneConfig config)
storeRef
- StoreRefconfig
- LuceneConfigpublic static ADMLuceneSearcherImpl getNodeSearcher()
public void setNamespacePrefixResolver(org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver)
LuceneSearcher
setNamespacePrefixResolver
in interface LuceneSearcher
namespacePrefixResolver
- NamespacePrefixResolverpublic org.alfresco.service.namespace.NamespacePrefixResolver getNamespacePrefixResolver()
public org.alfresco.service.cmr.repository.NodeService getNodeService()
public org.alfresco.repo.tenant.TenantService getTenantService()
public QueryRegisterComponent getQueryRegister()
public boolean indexExists()
LuceneSearcher
indexExists
in interface LuceneSearcher
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
LuceneSearcher
setNodeService
in interface LuceneSearcher
nodeService
- NodeServicepublic void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public void setQueryRegister(QueryRegisterComponent queryRegister)
queryRegister
- QueryRegisterComponentpublic void setQueryLanguages(Map<String,LuceneQueryLanguageSPI> queryLanguages)
public org.alfresco.service.cmr.search.ResultSet query(org.alfresco.service.cmr.repository.StoreRef store, String language, String queryString, org.alfresco.service.cmr.search.QueryParameterDefinition[] queryParameterDefinitions) throws SearcherException
query
in interface org.alfresco.service.cmr.search.SearchService
SearcherException
public org.alfresco.service.cmr.search.ResultSet query(org.alfresco.service.cmr.search.SearchParameters searchParameters)
query
in interface org.alfresco.service.cmr.search.SearchService
protected String findSortField(org.alfresco.service.cmr.search.SearchParameters searchParameters, ClosingIndexSearcher searcher, String field, Locale sortLocale)
public org.alfresco.service.cmr.search.ResultSet query(org.alfresco.service.cmr.repository.StoreRef store, String language, String query)
query
in interface org.alfresco.service.cmr.search.SearchService
public org.alfresco.service.cmr.search.ResultSet query(org.alfresco.service.cmr.repository.StoreRef store, org.alfresco.service.namespace.QName queryId, org.alfresco.service.cmr.search.QueryParameter[] queryParameters)
query
in interface org.alfresco.service.cmr.search.SearchService
public List<org.alfresco.service.cmr.repository.NodeRef> selectNodes(org.alfresco.service.cmr.repository.NodeRef contextNodeRef, String xpath, org.alfresco.service.cmr.search.QueryParameterDefinition[] parameters, org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks, String language) throws org.alfresco.service.cmr.repository.InvalidNodeRefException, org.alfresco.service.cmr.repository.XPathException
selectNodes
in interface org.alfresco.service.cmr.search.SearchService
org.alfresco.service.cmr.repository.InvalidNodeRefException
org.alfresco.service.cmr.repository.XPathException
NodeSearcher
public List<Serializable> selectProperties(org.alfresco.service.cmr.repository.NodeRef contextNodeRef, String xpath, org.alfresco.service.cmr.search.QueryParameterDefinition[] parameters, org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks, String language) throws org.alfresco.service.cmr.repository.InvalidNodeRefException, org.alfresco.service.cmr.repository.XPathException
selectProperties
in interface org.alfresco.service.cmr.search.SearchService
org.alfresco.service.cmr.repository.InvalidNodeRefException
org.alfresco.service.cmr.repository.XPathException
NodeSearcher
public boolean contains(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName propertyQName, String googleLikePattern)
contains
in interface org.alfresco.service.cmr.search.SearchService
public boolean contains(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName propertyQName, String googleLikePattern, org.alfresco.service.cmr.search.SearchParameters.Operator defaultOperator)
contains
in interface org.alfresco.service.cmr.search.SearchService
public boolean like(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName propertyQName, String sqlLikePattern, boolean includeFTS)
like
in interface org.alfresco.service.cmr.search.SearchService
public List<org.alfresco.service.cmr.repository.NodeRef> selectNodes(org.alfresco.service.cmr.repository.NodeRef contextNodeRef, String xpath, org.alfresco.service.cmr.search.QueryParameterDefinition[] parameters, org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks) throws org.alfresco.service.cmr.repository.InvalidNodeRefException, org.alfresco.service.cmr.repository.XPathException
selectNodes
in interface org.alfresco.service.cmr.search.SearchService
org.alfresco.service.cmr.repository.InvalidNodeRefException
org.alfresco.service.cmr.repository.XPathException
public List<Serializable> selectProperties(org.alfresco.service.cmr.repository.NodeRef contextNodeRef, String xpath, org.alfresco.service.cmr.search.QueryParameterDefinition[] parameters, org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks) throws org.alfresco.service.cmr.repository.InvalidNodeRefException, org.alfresco.service.cmr.repository.XPathException
selectProperties
in interface org.alfresco.service.cmr.search.SearchService
org.alfresco.service.cmr.repository.InvalidNodeRefException
org.alfresco.service.cmr.repository.XPathException
public List<org.alfresco.util.Pair<String,Integer>> getTopTerms(String field, int count)
LuceneSearcher
getTopTerms
in interface LuceneSearcher
field
- Stringcount
- intpublic ClosingIndexSearcher getClosingIndexSearcher()
LuceneSearcher
getClosingIndexSearcher
in interface LuceneSearcher
Copyright © 2005–2017 Alfresco Software. All rights reserved.