public class SolrCloudSearchProvider extends AbstractSolrSearchProvider
SolrSearchProvider implementation for Solr Cloud.SolrSearchProvider.CommitType| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_NUMBER_OF_SHARDS |
protected static int |
DEFAULT_REPLICATION_FACTOR |
protected static String |
NUMBER_OF_SHARDS_PARAM |
protected static String |
REPLICATION_FACTOR_PARAM |
CHARSET, DEFAULT_ALIVE_CHECK_INTERVAL, DEFAULT_CONFIGSET_PROPERTY, DEFAULT_CONFIGSET_VALUE, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_MAX_CONNECTIONS, DEFAULT_MAX_CONNECTIONS_PER_HOST, DEFAULT_SOCKET_TIMEOUT, FILTER_IGNORE_CASE_KEY, IGNORE_CASE_ATTRIBUTE, MANAGED_STOPWORDS_RESOURCE_CLASS, MANAGED_SYNONYM_RESOURCE_CLASS, SOLR_QUERY_SELECT_ALL, STOP_WORDS_RESOURCE_PATH, SYNONYM_RESOURCE_PATH, SYNONYM_SPLIT_CHAR, UTF8_ENCODING| Constructor and Description |
|---|
SolrCloudSearchProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyClientSettings(CloudSolrClient solrClient,
SolrClientConfig solrClientConfig) |
protected CloudSolrClient |
createClient(SolrConfig solrConfig) |
void |
createIndex(Index index)
Creates an index (if it does not exist).
|
void |
deleteIndex(Index index)
Deletes an index (if it exists).
|
void |
exportConfig(Index index)
Exports the configuration to a specific index.
|
SolrClient |
getClient(Index index)
Returns
SolrClient for specific Index, that can be used for searches. |
SolrClient |
getClientForIndexing(Index index)
Returns
SolrClient for specific Index, that can be used for indexing. |
protected boolean |
indexExists(SolrClient solrClient,
String collection) |
protected Integer |
resolveNumShards(Index index) |
protected Integer |
resolveReplicationFactor(Index index) |
protected void |
validateConfiguration(SolrConfig solrConfig)
Validates a configuration, verifying that one and only one master is specified in the solr cluster.
|
buildSynonyms, buildSynonyms, commit, compareSynonyms, createSynonyms, createSynonymsForLanguages, deleteAllDocuments, deleteDocumentsByPk, deleteOldDocuments, encode, executeHttpDelete, executeHttpGet, executeHttpPost, executeHttpPut, exportStopWords, exportSynonyms, getConfigurationService, getIndexNameResolver, getIntegerValue, getLanguages, getSolrClientPool, getSolrFacetSearchConfigDao, getStopWordsFromConfig, logSynonyms, optimize, resolveConfigSet, resolveIndex, setConfigurationService, setIndexNameResolver, setSolrClientPool, setSolrFacetSearchConfigDaoprotected static final String NUMBER_OF_SHARDS_PARAM
protected static final int DEFAULT_NUMBER_OF_SHARDS
protected static final String REPLICATION_FACTOR_PARAM
protected static final int DEFAULT_REPLICATION_FACTOR
public SolrClient getClient(Index index) throws SolrServiceException
SolrSearchProviderSolrClient for specific Index, that can be used for searches.index - - the indexSolrClient instanceSolrServiceException - if an error occurspublic SolrClient getClientForIndexing(Index index) throws SolrServiceException
SolrSearchProviderSolrClient for specific Index, that can be used for indexing.index - - the indexSolrClient instanceSolrServiceException - if an error occursprotected CloudSolrClient createClient(SolrConfig solrConfig)
protected void applyClientSettings(CloudSolrClient solrClient,
SolrClientConfig solrClientConfig)
protected boolean indexExists(SolrClient solrClient,
String collection)
throws SolrServiceException
SolrServiceExceptionpublic 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)
configModel - Copyright © 2017 SAP SE. All Rights Reserved.