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

      Fields 
      Modifier and Type Field Description
      static java.util.Map<java.lang.String,​java.lang.String> JSON_PARAM
      Default parameters to request a JSON Response (default is XML)
    • Field Detail

      • JSON_PARAM

        static final java.util.Map<java.lang.String,​java.lang.String> JSON_PARAM
        Default parameters to request a JSON Response (default is XML)
    • Method Detail

      • executeAction

        JSONAPIResult executeAction​(java.lang.String core,
                                    JSONAPIResultFactory.ACTION action,
                                    java.util.Map<java.lang.String,​java.lang.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 cores
        action - SOLR CoreAdmin API Action name
        parameters - Action parameters in pairs of key, value
        Returns:
      • executeCommand

        JSONAPIResult executeCommand​(java.lang.String core,
                                     JSONAPIResultFactory.HANDLER handler,
                                     JSONAPIResultFactory.COMMAND command,
                                     java.util.Map<java.lang.String,​java.lang.String> parameters)
        Execute a COMMAND from the SOLR API
        Parameters:
        core - Name of the core to execute the command
        handler - Name of the handler for the SOLR REST API
        command - Name of the command to be invoked
        parameters - Action parameters in pairs of key, value
        Returns: