Class SolrSQLHttpClient
java.lang.Object
org.alfresco.repo.search.impl.solr.AbstractSolrQueryHTTPClient
org.alfresco.repo.search.impl.solr.SolrSQLHttpClient
- All Implemented Interfaces:
SolrQueryClient,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.InitializingBean
HTTP Client that queries Solr using the sql handler.
- Author:
- Michael Suzuki
-
Field Summary
FieldsFields inherited from class org.alfresco.repo.search.impl.solr.AbstractSolrQueryHTTPClient
HIGHLIGHT_PARAMS_ALTERNATE_FIELD, HIGHLIGHT_PARAMS_ALTERNATE_FIELD_LENGTH, HIGHLIGHT_PARAMS_FIELD_MATCH, HIGHLIGHT_PARAMS_FIELDS, HIGHLIGHT_PARAMS_FORMATTER, HIGHLIGHT_PARAMS_FRAGMENTER, HIGHLIGHT_PARAMS_FRAGSIZE, HIGHLIGHT_PARAMS_HIGHLIGHT, HIGHLIGHT_PARAMS_HIGHLIGHT_MULTI_TERM, HIGHLIGHT_PARAMS_INCREMENT, HIGHLIGHT_PARAMS_MAX_CHARS, HIGHLIGHT_PARAMS_MAX_RE_CHARS, HIGHLIGHT_PARAMS_MERGE_CONTIGUOUS_FRAGMENTS, HIGHLIGHT_PARAMS_PATTERN, HIGHLIGHT_PARAMS_REGEX, HIGHLIGHT_PARAMS_SIMPLE, HIGHLIGHT_PARAMS_SIMPLE_POST, HIGHLIGHT_PARAMS_SIMPLE_PRE, HIGHLIGHT_PARAMS_SLOP, HIGHLIGHT_PARAMS_SNIPPETS, HIGHLIGHT_PARAMS_USE_PHRASE_HIGHLIGHTER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteQuery(SearchParameters searchParameters, String language) executeStatsQuery(StatsParameters searchParameters) voidinit()booleanbooleanbooleanbooleanprotected ResultSetpostSolrQuery(org.apache.commons.httpclient.HttpClient httpClient, String url, org.json.JSONObject body, SolrJsonProcessor<?> jsonProcessor) voidsetAnyDenyDenies(boolean anyDenyDenies) When set, a single DENIED ACL entry for any authority will result in access being denied as a whole.voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) voidsetIncludeGroupsForRoleAdmin(boolean includeGroupsForRoleAdmin) voidsetMappingLookup(HashMap<StoreRef, SolrStoreMappingWrapper> mappingLookup) voidsetPermissionService(PermissionService permissionService) voidsetRepositoryState(RepositoryState repositoryState) voidsetShardRegistry(ShardRegistry shardRegistry) voidsetStoreMappings(List<SolrStoreMapping> storeMappings) voidsetTenantService(TenantService tenantService) voidsetUseDynamicShardRegistration(boolean useDynamicShardRegistration) Methods inherited from class org.alfresco.repo.search.impl.solr.AbstractSolrQueryHTTPClient
createNewPostMethod, postQuery
-
Field Details
-
DEFAULT_SAVEPOST_BUFFER
public static final int DEFAULT_SAVEPOST_BUFFER- See Also:
-
-
Constructor Details
-
SolrSQLHttpClient
public SolrSQLHttpClient()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
-
init
public void init() -
executeQuery
- Specified by:
executeQueryin interfaceSolrQueryClient
-
postSolrQuery
protected ResultSet postSolrQuery(org.apache.commons.httpclient.HttpClient httpClient, String url, org.json.JSONObject body, SolrJsonProcessor<?> jsonProcessor) throws IOException, org.json.JSONException - Throws:
IOExceptionorg.json.JSONException
-
setStoreMappings
-
setRepositoryState
-
setIncludeGroupsForRoleAdmin
public void setIncludeGroupsForRoleAdmin(boolean includeGroupsForRoleAdmin) - Parameters:
includeGroupsForRoleAdmin- the includeGroupsForRoleAdmin to set
-
setAnyDenyDenies
public void setAnyDenyDenies(boolean anyDenyDenies) When set, a single DENIED ACL entry for any authority will result in access being denied as a whole. See system propertysecurity.anyDenyDenies- Parameters:
anyDenyDenies- boolean
-
setMappingLookup
-
setPermissionService
-
setUseDynamicShardRegistration
public void setUseDynamicShardRegistration(boolean useDynamicShardRegistration) -
setShardRegistry
-
getRepositoryState
-
isIncludeGroupsForRoleAdmin
public boolean isIncludeGroupsForRoleAdmin() -
isAnyDenyDenies
public boolean isAnyDenyDenies() -
isUseDynamicShardRegistration
public boolean isUseDynamicShardRegistration() -
getShardRegistry
-
getTenantService
-
getPermissionService
-
executeStatsQuery
- Specified by:
executeStatsQueryin interfaceSolrQueryClient
-
isSharded
public boolean isSharded()- Specified by:
isShardedin interfaceSolrQueryClient
-
setTenantService
-