Example #1
0
 protected function configure()
 {
     parent::configure();
     $this->setName('ping')->setDescription("Pings the Solr server to check it's up.")->addArgument('core', InputArgument::REQUIRED, 'Name of the core to ping.');
 }
Example #2
0
 protected function configure()
 {
     parent::configure();
     $this->setName('commit')->setDescription("Commits a SOLR core.")->addArgument('core', InputArgument::REQUIRED, 'Name of the core.');
 }
Example #3
0
 protected function configure()
 {
     parent::configure();
     $this->setName('status')->setDescription("Displays core status info.")->addArgument('core', InputArgument::OPTIONAL, 'Name of the core, if not given will display status for all cores.');
 }
Example #4
0
 protected function configure()
 {
     parent::configure();
     $this->setName('delete')->setDescription("Deletes documents from a core.")->addArgument('core', InputArgument::REQUIRED, 'Name of the core to delete from.')->addOption('query', null, InputOption::VALUE_REQUIRED, 'Query to delete by, if not given deletes all entries in the core.', '*:*');
 }
Example #5
0
 protected function configure()
 {
     parent::configure();
     $this->setName('import')->setDescription("Import JSON encoded data into a Solr core.")->addArgument('core', InputArgument::REQUIRED, 'Name of the core to import into.')->addArgument('source', InputArgument::IS_ARRAY, 'Path to a file or folder to import from (recursively).');
 }