示例#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.');
 }
示例#2
0
 protected function configure()
 {
     parent::configure();
     $this->setName('commit')->setDescription("Commits a SOLR core.")->addArgument('core', InputArgument::REQUIRED, 'Name of the core.');
 }
示例#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.');
 }
示例#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.', '*:*');
 }
示例#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).');
 }