Interface SolrIndexService
-
- All Known Implementing Classes:
DefaultSolrIndexService
public interface SolrIndexServiceService for managing indexes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SolrIndexModelactivateIndex(java.lang.String facetSearchConfig, java.lang.String indexedType, java.lang.String qualifier)Activates an index.SolrIndexModelcreateIndex(java.lang.String facetSearchConfig, java.lang.String indexedType, java.lang.String qualifier)Creates an index.voiddeleteIndex(java.lang.String facetSearchConfig, java.lang.String indexedType, java.lang.String qualifier)Deletes an index.SolrIndexModelgetActiveIndex(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.SolrIndexModelgetIndex(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.SolrIndexModelgetOrCreateIndex(java.lang.String facetSearchConfig, java.lang.String indexedType, java.lang.String qualifier)Gets or creates an index (if it does not exist yet).
-
-
-
Method Detail
-
createIndex
SolrIndexModel createIndex(java.lang.String facetSearchConfig, java.lang.String indexedType, java.lang.String qualifier) throws SolrServiceException
Creates an index.- Parameters:
facetSearchConfig- - the facet search configuration nameindexedType- - the indexed type namequalifier- - the qualifier- Returns:
- the index
- Throws:
SolrServiceException- if an error occurs
-
getAllIndexes
java.util.List<SolrIndexModel> getAllIndexes() throws SolrServiceException
Returns all indexes.- Returns:
- the indexes
- Throws:
SolrServiceException- if an error occurs
-
getIndexesForConfigAndType
java.util.List<SolrIndexModel> getIndexesForConfigAndType(java.lang.String facetSearchConfig, java.lang.String indexedType) throws SolrServiceException
Returns all indexes for a specific facet search configuration and indexed type.- Parameters:
facetSearchConfig- - the facet search configuration nameindexedType- - the indexed type name- Returns:
- the indexes
- Throws:
SolrServiceException- if an error occurs
-
getIndex
SolrIndexModel getIndex(java.lang.String facetSearchConfig, java.lang.String indexedType, java.lang.String qualifier) throws SolrServiceException
Finds an index by facet search configuration, indexed type and qualifier.- Parameters:
facetSearchConfig- - the facet search configuration nameindexedType- - the indexed type namequalifier- - the qualifier- Returns:
- the index
- Throws:
SolrIndexNotFoundException- if an index cannot be foundSolrServiceException- if an error occurs
-
getOrCreateIndex
SolrIndexModel getOrCreateIndex(java.lang.String facetSearchConfig, java.lang.String indexedType, java.lang.String qualifier) throws SolrServiceException
Gets or creates an index (if it does not exist yet).- Parameters:
facetSearchConfig- - the facet search configuration nameindexedType- - the indexed type namequalifier- - the qualifier- Returns:
- the index
- Throws:
SolrServiceException- if an error occurs
-
deleteIndex
void deleteIndex(java.lang.String facetSearchConfig, java.lang.String indexedType, java.lang.String qualifier) throws SolrServiceExceptionDeletes an index.- Parameters:
facetSearchConfig- - the facet search configuration nameindexedType- - the indexed type namequalifier- - the qualifier- Throws:
SolrIndexNotFoundException- if an index cannot be foundSolrServiceException- if an error occurs
-
activateIndex
SolrIndexModel activateIndex(java.lang.String facetSearchConfig, java.lang.String indexedType, java.lang.String qualifier) throws SolrServiceException
Activates an index. All other indexes within facet search configuration and indexed type combination will be deactivated.- Parameters:
facetSearchConfig- - the facet search configuration nameindexedType- - the indexed type namequalifier- - the qualifier- Returns:
- the active index
- Throws:
SolrIndexNotFoundException- if an index cannot be foundSolrServiceException- if an error occurs
-
getActiveIndex
SolrIndexModel getActiveIndex(java.lang.String facetSearchConfig, java.lang.String indexedType) throws SolrServiceException
Returns the active index for a specific facet search configuration and indexed type.- Parameters:
facetSearchConfig- - the facet search configuration nameindexedType- - the indexed type name- Returns:
- the active index
- Throws:
SolrIndexNotFoundException- if an index cannot be foundSolrServiceException- if an error occurs
-
-