public class XmlExportSearchProvider extends java.lang.Object implements SolrSearchProvider
SolrSearchProvider implementation for XML_EXPORT mode.SolrSearchProvider.CommitType| Constructor and Description |
|---|
XmlExportSearchProvider() |
| 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. |
IndexNameResolver |
getIndexNameResolver() |
void |
optimize(Index index)
Optimizes a given index.
|
Index |
resolveIndex(FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
java.lang.String qualifier)
Resolves an index.
|
void |
setIndexNameResolver(IndexNameResolver indexNameResolver) |
public Index resolveIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.lang.String qualifier)
SolrSearchProviderIndex.resolveIndex in interface SolrSearchProviderfacetSearchConfig - - the facet search configurationindexedType - - the indexed typequalifier - - the qualifierpublic SolrClient getClient(Index index) throws SolrServiceException
SolrSearchProviderSolrClient for specific Index, that can be used for searches.getClient in interface SolrSearchProviderindex - - the indexSolrClient instanceSolrServiceException - if an error occurspublic SolrClient getClientForIndexing(Index index) throws SolrServiceException
SolrSearchProviderSolrClient for specific Index, that can be used for indexing.getClientForIndexing in interface SolrSearchProviderindex - - the indexSolrClient instanceSolrServiceException - if an error occurspublic void createIndex(Index index) throws SolrServiceException
SolrSearchProvidercreateIndex in interface SolrSearchProviderindex - - the indexSolrServiceException - if an error occurspublic void deleteIndex(Index index) throws SolrServiceException
SolrSearchProviderdeleteIndex in interface SolrSearchProviderindex - - the indexSolrServiceException - if an error occurspublic void exportConfig(Index index) throws SolrServiceException
SolrSearchProviderexportConfig in interface SolrSearchProviderindex - - the indexSolrServiceException - if an error occurspublic void commit(Index index, SolrSearchProvider.CommitType commitType) throws SolrServiceException
SolrSearchProvidercommit in interface SolrSearchProviderindex - - the indexcommitType - - the commit typeSolrServiceException - if an error occurspublic void optimize(Index index) throws SolrServiceException
SolrSearchProvideroptimize in interface SolrSearchProviderindex - - the indexSolrServiceException - if an error occurspublic void deleteAllDocuments(Index index) throws SolrServiceException
SolrSearchProviderdeleteAllDocuments in interface SolrSearchProviderindex - - the indexSolrServiceException - if an error occurspublic void deleteOldDocuments(Index index, long indexOperationId) throws SolrServiceException
SolrSearchProviderdeleteOldDocuments in interface SolrSearchProviderindex - - the indexindexOperationId - - the index operation idSolrServiceException - if an error occurspublic void deleteDocumentsByPk(Index index, java.util.Collection<PK> pks)
SolrSearchProviderdeleteDocumentsByPk in interface SolrSearchProviderindex - - the indexpks - - the pks listpublic IndexNameResolver getIndexNameResolver()
public void setIndexNameResolver(IndexNameResolver indexNameResolver)
Copyright © 2018 SAP SE. All Rights Reserved.