Class CreateCollectionTool

  • All Implemented Interfaces:
    Tool

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

      • CreateCollectionTool

        public CreateCollectionTool()
      • CreateCollectionTool

        public CreateCollectionTool​(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()
      • runCloudTool

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