/**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('ongr:es:index:export')->setDescription('Exports data from elasticsearch index.')->addArgument('filename', InputArgument::REQUIRED, 'Select file to store output')->addOption('chunk', null, InputOption::VALUE_REQUIRED, 'Chunk size to use in scan api', 500);
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('ongr:es:type:create')->setDescription('Puts mappings into elasticsearch client for specific manager.')->addOption('type', 't', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Specific types to load.', []);
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('ongr:es:index:create')->setDescription('Creates elasticsearch index.')->addOption('time', 't', InputOption::VALUE_NONE, 'Adds date suffix to the new index name')->addOption('alias', 'a', InputOption::VALUE_NONE, 'If the time suffix is used, its nice to create an alias to the configured index name.')->addOption('no-mapping', null, InputOption::VALUE_NONE, 'Do not include mapping')->addOption('if-not-exists', null, InputOption::VALUE_NONE, 'Don\'t trigger an error, when the index already exists');
 }
Ejemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('ongr:es:type:drop')->setDescription('Updates elasticsearch index mappings.')->addOption('type', 't', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Specific types to drop.', [])->addOption('force', 'f', InputOption::VALUE_NONE, 'Set this parameter to execute this command');
 }
Ejemplo n.º 5
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('ongr:es:warmer:put')->setDescription('Puts warmers into elasticsearch index.')->addArgument('names', InputArgument::IS_ARRAY | InputArgument::OPTIONAL, 'Warmers names.', []);
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('ongr:es:cache:clear')->setDescription('Clears elasticsearch client cache.');
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('ongr:es:index:create')->setDescription('Creates elasticsearch index.')->addOption('time', 't', InputOption::VALUE_NONE, 'Adds date suffix to new index name')->addOption('with-warmers', 'w', InputOption::VALUE_NONE, 'Puts warmers into index')->addOption('no-mapping', 'm', InputOption::VALUE_NONE, 'Do not include mapping');
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('ongr:es:index:import')->setDescription('Imports data to elasticsearch index.')->addArgument('filename', InputArgument::REQUIRED, 'Select file to store output')->addOption('bulk-size', 'b', InputOption::VALUE_REQUIRED, 'Set bulk size for import', 1000)->addOption('gzip', 'z', InputOption::VALUE_NONE, 'Import a gzip file');
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('ongr:es:index:drop')->setDescription('Drops elasticsearch index.')->addOption('force', 'f', InputOption::VALUE_NONE, 'Set this parameter to execute this command');
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('ongr:es:mapping:update')->setDescription('Updates elasticsearch index mappings.')->addOption('force', 'f', InputOption::VALUE_NONE, 'This is mandatory parameter to execute this command.')->addOption('types', 't', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Set this parameter to update only a specific document types. ' . 'The syntax of definition is with bundle: AcmeBundle:SomeDocument. ' . 'If no value is provided, it will update all mapping provided in the manager mapping.', [])->addOption('enable-warnings', 'w', InputOption::VALUE_NONE, 'By setting this option you will enable elasticsearch merge conflicts warnings. ' . 'It will add `ignore_conflicts` with false option in the client call.');
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('ongr:es:warmer:delete')->setDescription('Removes warmers from elasticsearch index.')->addArgument('names', InputArgument::IS_ARRAY | InputArgument::OPTIONAL, 'Warmer names', []);
 }