public class DefaultSolrIndexService extends java.lang.Object implements SolrIndexService
SolrIndexService.| Modifier and Type | Class and Description |
|---|---|
protected static interface |
DefaultSolrIndexService.ExecutionBody<T,E extends java.lang.Exception> |
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
FACET_SEARCH_CONFIG_PARAM |
protected static java.lang.String |
INDEX_PARAM |
protected static java.lang.String |
INDEXED_TYPE_PARAM |
protected static java.lang.String |
QUALIFIER_PARAM |
| Constructor and Description |
|---|
DefaultSolrIndexService() |
| Modifier and Type | Method and Description |
|---|---|
SolrIndexModel |
activateIndex(java.lang.String facetSearchConfig,
java.lang.String indexedType,
java.lang.String qualifier)
Activates an index.
|
protected SolrIndexModel |
createIndex(SolrFacetSearchConfigModel facetSearchConfig,
SolrIndexedTypeModel indexedType,
java.lang.String qualifier) |
SolrIndexModel |
createIndex(java.lang.String facetSearchConfig,
java.lang.String indexedType,
java.lang.String qualifier)
Creates an index.
|
void |
deleteIndex(java.lang.String facetSearchConfig,
java.lang.String indexedType,
java.lang.String qualifier)
Deletes an index.
|
protected SolrIndexModel |
doActivateIndex(java.lang.String facetSearchConfig,
java.lang.String indexedType,
java.lang.String qualifier) |
protected <T> T |
doInTxWithOptimisticLocking(DefaultSolrIndexService.ExecutionBody<T,SolrServiceException> action) |
protected SolrFacetSearchConfigModel |
findFacetSearchConfig(java.lang.String facetSearchConfig) |
protected SolrIndexModel |
findIndex(SolrFacetSearchConfigModel facetSearchConfig,
SolrIndexedTypeModel indexedType,
java.lang.String qualifier) |
protected SolrIndexedTypeModel |
findIndexedType(SolrFacetSearchConfigModel facetSearchConfigModel,
java.lang.String indexedType) |
SolrIndexModel |
getActiveIndex(java.lang.String facetSearchConfig,
java.lang.String indexedType)
Returns the active index for a specific facet search configuration and indexed type.
|
java.util.List<SolrIndexModel> |
getAllIndexes()
Returns all indexes.
|
SolrIndexModel |
getIndex(java.lang.String facetSearchConfig,
java.lang.String indexedType,
java.lang.String qualifier)
Finds an index by facet search configuration, indexed type and qualifier.
|
java.util.List<SolrIndexModel> |
getIndexesForConfigAndType(java.lang.String facetSearchConfig,
java.lang.String indexedType)
Returns all indexes for a specific facet search configuration and indexed type.
|
ModelService |
getModelService() |
SolrIndexModel |
getOrCreateIndex(java.lang.String facetSearchConfig,
java.lang.String indexedType,
java.lang.String qualifier)
Gets or creates an index (if it does not exist yet).
|
SolrFacetSearchConfigDao |
getSolrFacetSearchConfigDao() |
SolrIndexDao |
getSolrIndexDao() |
TimeService |
getTimeService() |
void |
setModelService(ModelService modelService) |
void |
setSolrFacetSearchConfigDao(SolrFacetSearchConfigDao solrFacetSearchConfigDao) |
void |
setSolrIndexDao(SolrIndexDao solrIndexDao) |
void |
setTimeService(TimeService timeService) |
protected static final java.lang.String FACET_SEARCH_CONFIG_PARAM
protected static final java.lang.String INDEXED_TYPE_PARAM
protected static final java.lang.String QUALIFIER_PARAM
protected static final java.lang.String INDEX_PARAM
public SolrIndexModel createIndex(java.lang.String facetSearchConfig, java.lang.String indexedType, java.lang.String qualifier) throws SolrServiceException
SolrIndexServicecreateIndex in interface SolrIndexServicefacetSearchConfig - - the facet search configuration nameindexedType - - the indexed type namequalifier - - the qualifierSolrServiceException - if an error occurspublic java.util.List<SolrIndexModel> getAllIndexes() throws SolrServiceException
SolrIndexServicegetAllIndexes in interface SolrIndexServiceSolrServiceException - if an error occurspublic java.util.List<SolrIndexModel> getIndexesForConfigAndType(java.lang.String facetSearchConfig, java.lang.String indexedType) throws SolrServiceException
SolrIndexServicegetIndexesForConfigAndType in interface SolrIndexServicefacetSearchConfig - - the facet search configuration nameindexedType - - the indexed type nameSolrServiceException - if an error occurspublic SolrIndexModel getIndex(java.lang.String facetSearchConfig, java.lang.String indexedType, java.lang.String qualifier) throws SolrServiceException
SolrIndexServicegetIndex in interface SolrIndexServicefacetSearchConfig - - the facet search configuration nameindexedType - - the indexed type namequalifier - - the qualifierSolrIndexNotFoundException - if an index cannot be foundSolrServiceException - if an error occurspublic SolrIndexModel getOrCreateIndex(java.lang.String facetSearchConfig, java.lang.String indexedType, java.lang.String qualifier) throws SolrServiceException
SolrIndexServicegetOrCreateIndex in interface SolrIndexServicefacetSearchConfig - - the facet search configuration nameindexedType - - the indexed type namequalifier - - the qualifierSolrServiceException - if an error occurspublic void deleteIndex(java.lang.String facetSearchConfig,
java.lang.String indexedType,
java.lang.String qualifier)
throws SolrServiceException
SolrIndexServicedeleteIndex in interface SolrIndexServicefacetSearchConfig - - the facet search configuration nameindexedType - - the indexed type namequalifier - - the qualifierSolrIndexNotFoundException - if an index cannot be foundSolrServiceException - if an error occurspublic SolrIndexModel activateIndex(java.lang.String facetSearchConfig, java.lang.String indexedType, java.lang.String qualifier) throws SolrServiceException
SolrIndexServiceactivateIndex in interface SolrIndexServicefacetSearchConfig - - the facet search configuration nameindexedType - - the indexed type namequalifier - - the qualifierSolrIndexNotFoundException - if an index cannot be foundSolrServiceException - if an error occursprotected SolrIndexModel doActivateIndex(java.lang.String facetSearchConfig, java.lang.String indexedType, java.lang.String qualifier) throws SolrServiceException
SolrServiceExceptionpublic SolrIndexModel getActiveIndex(java.lang.String facetSearchConfig, java.lang.String indexedType) throws SolrServiceException
SolrIndexServicegetActiveIndex in interface SolrIndexServicefacetSearchConfig - - the facet search configuration nameindexedType - - the indexed type nameSolrIndexNotFoundException - if an index cannot be foundSolrServiceException - if an error occursprotected SolrFacetSearchConfigModel findFacetSearchConfig(java.lang.String facetSearchConfig) throws SolrServiceException
SolrServiceExceptionprotected SolrIndexedTypeModel findIndexedType(SolrFacetSearchConfigModel facetSearchConfigModel, java.lang.String indexedType) throws SolrServiceException
SolrServiceExceptionprotected SolrIndexModel findIndex(SolrFacetSearchConfigModel facetSearchConfig, SolrIndexedTypeModel indexedType, java.lang.String qualifier) throws SolrServiceException
SolrServiceExceptionprotected SolrIndexModel createIndex(SolrFacetSearchConfigModel facetSearchConfig, SolrIndexedTypeModel indexedType, java.lang.String qualifier) throws SolrServiceException
SolrServiceExceptionprotected <T> T doInTxWithOptimisticLocking(DefaultSolrIndexService.ExecutionBody<T,SolrServiceException> action) throws SolrServiceException
SolrServiceExceptionpublic SolrIndexDao getSolrIndexDao()
public void setSolrIndexDao(SolrIndexDao solrIndexDao)
public SolrFacetSearchConfigDao getSolrFacetSearchConfigDao()
public void setSolrFacetSearchConfigDao(SolrFacetSearchConfigDao solrFacetSearchConfigDao)
public TimeService getTimeService()
public ModelService getModelService()
public void setModelService(ModelService modelService)
public void setTimeService(TimeService timeService)
Copyright © 2018 SAP SE. All Rights Reserved.