public interface SolrSearchProvider
| Modifier and Type | Interface and Description |
|---|---|
static class |
SolrSearchProvider.CommitType
Commit type to be used when performing a commit.
|
| Modifier and Type | Method and Description |
|---|---|
void |
commit(Index index,
SolrSearchProvider.CommitType commitType)
Performs a commit on the given index.
|
void |
createIndex(Index index)
Creates an index (if it does not exist).
|
void |
deleteAllDocuments(Index index)
Deletes all documents from an index.
|
void |
deleteDocumentsByPk(Index index,
java.util.Collection<PK> pks)
Deletes documents matching the provided list of pks
|
void |
deleteIndex(Index index)
Deletes an index (if it exists).
|
void |
deleteOldDocuments(Index index,
long indexOperationId)
Deletes old documents from an index.
|
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. |
void |
optimize(Index index)
Optimizes a given index.
|
Index |
resolveIndex(FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
java.lang.String qualifier)
Resolves an index.
|
Index resolveIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.lang.String qualifier)
Index.facetSearchConfig - - the facet search configurationindexedType - - the indexed typequalifier - - the qualifierSolrClient getClient(Index index) throws SolrServiceException
SolrClient for specific Index, that can be used for searches.index - - the indexSolrClient instanceSolrServiceException - if an error occursSolrClient getClientForIndexing(Index index) throws SolrServiceException
SolrClient for specific Index, that can be used for indexing.index - - the indexSolrClient instanceSolrServiceException - if an error occursvoid createIndex(Index index) throws SolrServiceException
index - - the indexSolrServiceException - if an error occursvoid deleteIndex(Index index) throws SolrServiceException
index - - the indexSolrServiceException - if an error occursvoid exportConfig(Index index) throws SolrServiceException
index - - the indexSolrServiceException - if an error occursvoid deleteAllDocuments(Index index) throws SolrServiceException
index - - the indexSolrServiceException - if an error occursvoid deleteOldDocuments(Index index, long indexOperationId) throws SolrServiceException
index - - the indexindexOperationId - - the index operation idSolrServiceException - if an error occursvoid deleteDocumentsByPk(Index index, java.util.Collection<PK> pks) throws SolrServiceException
index - - the indexpks - - the pks listSolrServiceException - if an error occursvoid commit(Index index, SolrSearchProvider.CommitType commitType) throws SolrServiceException
index - - the indexcommitType - - the commit typeSolrServiceException - if an error occursvoid optimize(Index index) throws SolrServiceException
index - - the indexSolrServiceException - if an error occursCopyright © 2018 SAP SE. All Rights Reserved.