Class CreateTool

  • All Implemented Interfaces:
    Tool

    public class CreateTool
    extends ToolBase
    Supports create command in the bin/solr script.
    • Constructor Detail

      • CreateTool

        public CreateTool()
      • CreateTool

        public CreateTool​(PrintStream stdout)
    • 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()
      • createCore

        protected void createCore​(org.apache.commons.cli.CommandLine cli,
                                  org.apache.solr.client.solrj.SolrClient solrClient)
                           throws Exception
        Throws:
        Exception
      • createCollection

        protected void createCollection​(org.apache.commons.cli.CommandLine cli)
                                 throws Exception
        Throws:
        Exception
      • createCollection

        protected void createCollection​(org.apache.solr.client.solrj.impl.CloudSolrClient cloudSolrClient,
                                        org.apache.commons.cli.CommandLine cli)
                                 throws Exception
        Throws:
        Exception