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
public class SolrSQLHttpClient extends AbstractSolrQueryHTTPClient implements SolrQueryClient
HTTP Client that queries Solr using the sql handler.- Author:
- Michael Suzuki
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_SAVEPOST_BUFFER-
Fields 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 Constructor Description SolrSQLHttpClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()ResultSetexecuteQuery(SearchParameters searchParameters, String language)StatsResultSetexecuteStatsQuery(StatsParameters searchParameters)PermissionServicegetPermissionService()RepositoryStategetRepositoryState()ShardRegistrygetShardRegistry()TenantServicegetTenantService()voidinit()booleanisAnyDenyDenies()booleanisIncludeGroupsForRoleAdmin()booleanisSharded()booleanisUseDynamicShardRegistration()protected 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
postQuery
-
-
-
-
Field Detail
-
DEFAULT_SAVEPOST_BUFFER
public static final int DEFAULT_SAVEPOST_BUFFER
- See Also:
- Constant Field Values
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- 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
public ResultSet executeQuery(SearchParameters searchParameters, String language)
- 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
public void setStoreMappings(List<SolrStoreMapping> storeMappings)
-
setRepositoryState
public void setRepositoryState(RepositoryState repositoryState)
-
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
public void setMappingLookup(HashMap<StoreRef,SolrStoreMappingWrapper> mappingLookup)
-
setPermissionService
public void setPermissionService(PermissionService permissionService)
-
setUseDynamicShardRegistration
public void setUseDynamicShardRegistration(boolean useDynamicShardRegistration)
-
setShardRegistry
public void setShardRegistry(ShardRegistry shardRegistry)
-
getRepositoryState
public RepositoryState getRepositoryState()
-
isIncludeGroupsForRoleAdmin
public boolean isIncludeGroupsForRoleAdmin()
-
isAnyDenyDenies
public boolean isAnyDenyDenies()
-
isUseDynamicShardRegistration
public boolean isUseDynamicShardRegistration()
-
getShardRegistry
public ShardRegistry getShardRegistry()
-
getTenantService
public TenantService getTenantService()
-
getPermissionService
public PermissionService getPermissionService()
-
executeStatsQuery
public StatsResultSet executeStatsQuery(StatsParameters searchParameters)
- Specified by:
executeStatsQueryin interfaceSolrQueryClient
-
isSharded
public boolean isSharded()
- Specified by:
isShardedin interfaceSolrQueryClient
-
setTenantService
public void setTenantService(TenantService tenantService)
-
-