Class XmlExportSearchProvider
java.lang.Object
de.hybris.platform.solrfacetsearch.solr.impl.XmlExportSearchProvider
- All Implemented Interfaces:
SolrSearchProvider
SolrSearchProvider implementation for XML_EXPORT mode.-
Nested Class Summary
Nested classes/interfaces inherited from interface de.hybris.platform.solrfacetsearch.solr.SolrSearchProvider
SolrSearchProvider.CommitType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit(Index index, SolrSearchProvider.CommitType commitType) Performs a commit on the given index.voidcreateIndex(Index index) Creates an index (if it does not exist).voiddeleteAllDocuments(Index index) Deletes all documents from an index.voiddeleteDocumentsByPk(Index index, Collection<PK> pks) Deletes documents matching the provided list of pksvoiddeleteIndex(Index index) Deletes an index (if it exists).voiddeleteOldDocuments(Index index, long indexOperationId) Deletes old documents from an index.voidexportConfig(Index index) Exports the configuration to a specific index.org.apache.solr.client.solrj.SolrClientReturnsSolrClientfor specificIndex, that can be used for searches.org.apache.solr.client.solrj.SolrClientgetClientForIndexing(Index index) ReturnsSolrClientfor specificIndex, that can be used for indexing.voidOptimizes a given index.resolveIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, String qualifier) Resolves an index.voidsetIndexNameResolver(IndexNameResolver indexNameResolver)
-
Constructor Details
-
XmlExportSearchProvider
public XmlExportSearchProvider()
-
-
Method Details
-
resolveIndex
public Index resolveIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, String qualifier) Description copied from interface:SolrSearchProviderResolves an index. Resolving an index only creates a search provider specific instance ofIndex.- Specified by:
resolveIndexin interfaceSolrSearchProvider- Parameters:
facetSearchConfig- - the facet search configurationindexedType- - the indexed typequalifier- - the qualifier- Returns:
- the index
-
getClient
Description copied from interface:SolrSearchProviderReturnsSolrClientfor specificIndex, that can be used for searches.- Specified by:
getClientin interfaceSolrSearchProvider- Parameters:
index- - the index- Returns:
SolrClientinstance- Throws:
SolrServiceException- if an error occurs
-
getClientForIndexing
public org.apache.solr.client.solrj.SolrClient getClientForIndexing(Index index) throws SolrServiceException Description copied from interface:SolrSearchProviderReturnsSolrClientfor specificIndex, that can be used for indexing.- Specified by:
getClientForIndexingin interfaceSolrSearchProvider- Parameters:
index- - the index- Returns:
SolrClientinstance- Throws:
SolrServiceException- if an error occurs
-
createIndex
Description copied from interface:SolrSearchProviderCreates an index (if it does not exist).- Specified by:
createIndexin interfaceSolrSearchProvider- Parameters:
index- - the index- Throws:
SolrServiceException- if an error occurs
-
deleteIndex
Description copied from interface:SolrSearchProviderDeletes an index (if it exists).- Specified by:
deleteIndexin interfaceSolrSearchProvider- Parameters:
index- - the index- Throws:
SolrServiceException- if an error occurs
-
exportConfig
Description copied from interface:SolrSearchProviderExports the configuration to a specific index.- Specified by:
exportConfigin interfaceSolrSearchProvider- Parameters:
index- - the index- Throws:
SolrServiceException- if an error occurs
-
commit
public void commit(Index index, SolrSearchProvider.CommitType commitType) throws SolrServiceException Description copied from interface:SolrSearchProviderPerforms a commit on the given index. An hard commit makes sure that indexed documents are persisted and visible, a soft commit makes sure indexed documents are visible.- Specified by:
commitin interfaceSolrSearchProvider- Parameters:
index- - the indexcommitType- - the commit type- Throws:
SolrServiceException- if an error occurs
-
optimize
Description copied from interface:SolrSearchProviderOptimizes a given index. It does not wait for the operation to complete.- Specified by:
optimizein interfaceSolrSearchProvider- Parameters:
index- - the index- Throws:
SolrServiceException- if an error occurs
-
deleteAllDocuments
Description copied from interface:SolrSearchProviderDeletes all documents from an index.- Specified by:
deleteAllDocumentsin interfaceSolrSearchProvider- Parameters:
index- - the index- Throws:
SolrServiceException- if an error occurs
-
deleteOldDocuments
Description copied from interface:SolrSearchProviderDeletes old documents from an index. Old documents are documents that were not created/updated since a given index operation.- Specified by:
deleteOldDocumentsin interfaceSolrSearchProvider- Parameters:
index- - the indexindexOperationId- - the index operation id- Throws:
SolrServiceException- if an error occurs
-
deleteDocumentsByPk
Description copied from interface:SolrSearchProviderDeletes documents matching the provided list of pks- Specified by:
deleteDocumentsByPkin interfaceSolrSearchProvider- Parameters:
index- - the indexpks- - the pks list
-
getIndexNameResolver
-
setIndexNameResolver
-