Class ApiTool

  • All Implemented Interfaces:

    public class ApiTool
    extends ToolBase
    • Constructor Detail

      • ApiTool

        public ApiTool()
        Used to send an arbitrary HTTP request to a Solr API endpoint.
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: Tool
        Defines the interface to a Solr tool that can be run from this command-line app.
      • getOptions

        public List<org.apache.commons.cli.Option> getOptions()
      • getSolrUrlFromUri

        public static String getSolrUrlFromUri​(URI uri)
        Get Solr base url with port if present and root from URI
        uri - Full Solr URI (e.g. http://localhost:8983/solr/admin/info/system)
        Solr base url with port and root (from above example http://localhost:8983/solr)
      • getSolrParamsFromUri

        public static org.apache.solr.common.params.ModifiableSolrParams getSolrParamsFromUri​(URI uri)