public class SolrStandaloneSearchProvider extends AbstractSolrSearchProvider
SolrSearchProvider implementation for Solr Legacy Distribution and Replication.SolrSearchProvider.CommitTypeCHARSET, 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 |
|---|
SolrStandaloneSearchProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeAdminSolrClients(List<HttpSolrClient> solrClients) |
protected List<HttpSolrClient> |
createAdminSolrClients(Index index) |
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 void |
deleteIndexes(List<HttpSolrClient> solrClients) |
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 String |
getMasterUrl(SolrConfig solrConfig) |
protected String |
getMasterUrl(SolrServerConfigModel configModel) |
protected boolean |
indexExists(SolrClient solrClient,
String core) |
protected boolean |
shouldMasterServerBeQueried(SolrConfig solrConfig) |
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, setSolrFacetSearchConfigDaopublic SolrClient 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)
public SolrClient 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 List<HttpSolrClient> createAdminSolrClients(Index index) throws SolrServiceException
SolrServiceExceptionprotected void closeAdminSolrClients(List<HttpSolrClient> solrClients)
protected boolean indexExists(SolrClient solrClient,
String core)
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 deleteIndexes(List<HttpSolrClient> solrClients)
protected boolean shouldMasterServerBeQueried(SolrConfig solrConfig)
protected String getMasterUrl(SolrConfig solrConfig)
protected String getMasterUrl(SolrServerConfigModel configModel) throws SolrServiceException
SolrServiceExceptionprotected void validateConfiguration(SolrConfig solrConfig)
solrConfig - Copyright © 2017 SAP SE. All Rights Reserved.