/**
  * {@inheritdoc}
  */
 protected function configure(Definition $definition, array $configuration)
 {
     parent::configure($definition, $configuration);
     $definition->addMethodCall('setField', [$configuration['field']]);
     !isset($configuration['fuzziness']) ?: $definition->addMethodCall('setFuzziness', [$configuration['fuzziness']]);
     !isset($configuration['prefix_length']) ?: $definition->addMethodCall('setPrefixLength', [$configuration['prefix_length']]);
     !isset($configuration['max_expansions']) ?: $definition->addMethodCall('setMaxExpansions', [$configuration['max_expansions']]);
 }
 /**
  * {@inheritdoc}
  */
 protected function configure(Definition $definition, array $configuration)
 {
     parent::configure($definition, $configuration);
     $definition->addMethodCall('setField', [$configuration['field']]);
     if (array_key_exists('inclusive', $configuration)) {
         $definition->addMethodCall('setInclusive', [$configuration['inclusive']]);
     }
 }
 /**
  * {@inheritdoc}
  */
 protected function configure(Definition $definition, array $configuration)
 {
     parent::configure($definition, $configuration);
     $definition->addMethodCall('setField', [$configuration['field']]);
     if (isset($configuration['size'])) {
         $definition->addMethodCall('setSize', [$configuration['size']]);
     }
     if (isset($configuration['sort']) && count($configuration['sort']) > 0) {
         $definition->addMethodCall('setSortType', [$configuration['sort']]);
     }
 }
 /**
  * Adds filter factory.
  *
  * @param AbstractFilterFactory $factory
  */
 public function addFilterFactory(AbstractFilterFactory $factory)
 {
     $this->factories[$factory->getName()] = $factory;
 }
 /**
  * {@inheritdoc}
  */
 protected function configure(Definition $definition, array $configuration)
 {
     parent::configure($definition, $configuration);
     $definition->addMethodCall('setChoices', [$configuration['choices']]);
 }
 /**
  * {@inheritdoc}
  */
 protected function configure(Definition $definition, array $configuration)
 {
     parent::configure($definition, $configuration);
     !isset($configuration['field']) ?: $definition->addMethodCall('setField', [$configuration['field']]);
 }
 /**
  * {@inheritdoc}
  */
 protected function configure(Definition $definition, array $configuration)
 {
     parent::configure($definition, $configuration);
 }
 /**
  * {@inheritdoc}
  */
 protected function configure(Definition $definition, array $configuration)
 {
     parent::configure($definition, $configuration);
     $definition->addMethodCall('setCountPerPage', [$configuration['count_per_page']]);
     $definition->addMethodCall('setMaxPages', [$configuration['max_pages']]);
 }