public class SolrStandaloneSearchProvider extends AbstractSolrSearchProvider
SolrSearchProvider implementation for Solr Legacy Distribution and Replication.| Modifier and Type | Class and Description |
|---|---|
static class |
SolrStandaloneSearchProvider.ClusterNodeResponse<T extends SolrResponse> |
protected static class |
SolrStandaloneSearchProvider.ClusterSolrClient |
SolrSearchProvider.CommitTypeDEFAULT_ALIVE_CHECK_INTERVAL, DEFAULT_CONFIGSET_PROPERTY, DEFAULT_CONFIGSET_VALUE, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_MAX_CONNECTIONS, DEFAULT_MAX_CONNECTIONS_PER_HOST, DEFAULT_SOCKET_TIMEOUT, INDEX_PARAM, JSON_CONTENT_TYPE, MANAGED_IGNORE_CASE_FIELD, MANAGED_INIT_ARGS_FIELD, MANAGED_LIST_FIELD, MANAGED_MAP_FIELD, MANAGED_RESOURCES_PATH, MANAGED_RESOURCES_ROOT_FIELD, MANAGED_STOP_WORDS_IGNORE_CASE_KEY, MANAGED_STOP_WORDS_PATH, MANAGED_STOP_WORDS_ROOT_FIELD, MANAGED_STOP_WORDS_TYPE, MANAGED_SYNONYMS_IGNORE_CASE_KEY, MANAGED_SYNONYMS_PATH, MANAGED_SYNONYMS_ROOT_FIELD, MANAGED_SYNONYMS_TYPE, SOLR_QUERY_SELECT_ALL, SYNONYM_SPLIT_CHAR, UTF8_ENCODING| Constructor and Description |
|---|
SolrStandaloneSearchProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeClient(SolrClient solrClient) |
protected void |
closeClientForIndexing(SolrClient solrClient) |
protected <T extends SolrResponseBase> |
clusterRequest(<any> request,
CachedSolrClient solrClient,
java.lang.String collection,
java.util.List<java.lang.String> nodes) |
protected SolrClient |
createClient(SolrConfig solrConfig) |
protected SolrClient |
createClientForIndexing(SolrConfig solrConfig) |
void |
createIndex(Index index)
Creates an index (if it does not exist).
|
void |
deleteIndex(Index index)
Deletes an index (if it exists).
|
protected java.util.List<SolrStandaloneSearchProvider.ClusterNodeResponse<CoreAdminResponse>> |
doCheckIndexStatus(Index index,
CachedSolrClient solrClient,
java.util.List<java.lang.String> nodes) |
protected java.util.List<SolrStandaloneSearchProvider.ClusterNodeResponse<CoreAdminResponse>> |
doCreateIndex(Index index,
CachedSolrClient solrClient,
java.util.List<java.lang.String> nodes) |
protected java.util.List<SolrStandaloneSearchProvider.ClusterNodeResponse<CoreAdminResponse>> |
doDeleteIndex(Index index,
CachedSolrClient solrClient,
java.util.List<java.lang.String> nodes) |
protected java.util.List<SolrStandaloneSearchProvider.ClusterNodeResponse<CoreAdminResponse>> |
doReloadIndex(Index index,
CachedSolrClient solrClient,
java.util.List<java.lang.String> nodes) |
void |
exportConfig(Index index)
Exports the configuration to a specific index.
|
CachedSolrClient |
getClient(Index index)
Returns
SolrClient for specific Index, that can be used for searches. |
CachedSolrClient |
getClientForIndexing(Index index)
Returns
SolrClient for specific Index, that can be used for indexing. |
protected boolean |
indexExists(Index index,
CoreAdminResponse response) |
protected void |
validateConfiguration(SolrConfig solrConfig) |
buildSynonyms, closeHttpClient, collectLanguages, commit, createHttpClient, deleteAllDocuments, deleteDocumentsByPk, deleteOldDocuments, encode, executeDelete, executeGet, executePost, expandSynonyms, exportConfig, exportStopWords, exportSynonyms, getConfigurationService, getIndexNameResolver, getIntegerValue, getSolrClientPool, getSolrFacetSearchConfigDao, loadManagedResourcesFromServer, loadStopWordsFromConfiguration, loadStopWordsFromServer, loadSynonymsFromConfiguration, loadSynonymsFromServer, optimize, resolveConfigSet, resolveIndex, setConfigurationService, setIndexNameResolver, setSolrClientPool, setSolrFacetSearchConfigDao, updateStopWordsOnServer, updateSynonymsOnServerpublic CachedSolrClient getClient(Index index) throws SolrServiceException
SolrSearchProviderSolrClient for specific Index, that can be used for searches.index - - the indexSolrClient instanceSolrServiceException - if an error occursprotected SolrClient createClient(SolrConfig solrConfig)
protected void closeClient(SolrClient solrClient)
public CachedSolrClient getClientForIndexing(Index index) throws SolrServiceException
SolrSearchProviderSolrClient for specific Index, that can be used for indexing.index - - the indexSolrClient instanceSolrServiceException - if an error occursprotected SolrClient createClientForIndexing(SolrConfig solrConfig)
protected void closeClientForIndexing(SolrClient solrClient)
public void createIndex(Index index) throws SolrServiceException
SolrSearchProviderindex - - the indexSolrServiceException - if an error occurspublic void deleteIndex(Index index) throws SolrServiceException
SolrSearchProviderindex - - the indexSolrServiceException - if an error occurspublic void exportConfig(Index index) throws SolrServiceException
SolrSearchProviderindex - - the indexSolrServiceException - if an error occursprotected void validateConfiguration(SolrConfig solrConfig)
protected boolean indexExists(Index index, CoreAdminResponse response)
protected java.util.List<SolrStandaloneSearchProvider.ClusterNodeResponse<CoreAdminResponse>> doCheckIndexStatus(Index index, CachedSolrClient solrClient, java.util.List<java.lang.String> nodes)
protected java.util.List<SolrStandaloneSearchProvider.ClusterNodeResponse<CoreAdminResponse>> doCreateIndex(Index index, CachedSolrClient solrClient, java.util.List<java.lang.String> nodes)
protected java.util.List<SolrStandaloneSearchProvider.ClusterNodeResponse<CoreAdminResponse>> doDeleteIndex(Index index, CachedSolrClient solrClient, java.util.List<java.lang.String> nodes)
protected java.util.List<SolrStandaloneSearchProvider.ClusterNodeResponse<CoreAdminResponse>> doReloadIndex(Index index, CachedSolrClient solrClient, java.util.List<java.lang.String> nodes)
protected <T extends SolrResponseBase> java.util.List<SolrStandaloneSearchProvider.ClusterNodeResponse<T>> clusterRequest(<any> request, CachedSolrClient solrClient, java.lang.String collection, java.util.List<java.lang.String> nodes)
Copyright © 2018 SAP SE. All Rights Reserved.