Interface SolrAdminClientInterface
- All Superinterfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.InitializingBean
- All Known Implementing Classes:
SOLRAdminClient
public interface SolrAdminClientInterface
extends org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean
Solr Admin client interface
Provides access to Actions and Commands in SOLR API
- Since:
- 6.2
- Author:
- aborroy
-
Field Summary
FieldsModifier and TypeFieldDescriptionDefault parameters to request a JSON Response (default is XML) -
Method Summary
Modifier and TypeMethodDescriptionexecuteAction(String core, JSONAPIResultFactory.ACTION action, Map<String, String> parameters) Execute an ACTION from the SOLR CoreAdmin APIexecuteCommand(String core, JSONAPIResultFactory.HANDLER handler, JSONAPIResultFactory.COMMAND command, Map<String, String> parameters) Execute a COMMAND from the SOLR APIMethods inherited from interface org.springframework.beans.factory.BeanFactoryAware
setBeanFactoryMethods inherited from interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
-
Field Details
-
JSON_PARAM
Default parameters to request a JSON Response (default is XML)
-
-
Method Details
-
executeAction
JSONAPIResult executeAction(String core, JSONAPIResultFactory.ACTION action, Map<String, String> parameters) Execute an ACTION from the SOLR CoreAdmin API- Parameters:
core- Name of the core to execute the command, when null the action is executed for all existing coresaction- SOLR CoreAdmin API Action nameparameters- Action parameters in pairs of key, value- Returns:
-
executeCommand
JSONAPIResult executeCommand(String core, JSONAPIResultFactory.HANDLER handler, JSONAPIResultFactory.COMMAND command, Map<String, String> parameters) Execute a COMMAND from the SOLR API- Parameters:
core- Name of the core to execute the commandhandler- Name of the handler for the SOLR REST APIcommand- Name of the command to be invokedparameters- Action parameters in pairs of key, value- Returns:
-