for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Elastica\Processor;
/**
* Elastica Split Processor.
*
* @author Federico Panini <[email protected]>
* @see https://www.elastic.co/guide/en/elasticsearch/reference/current/split-processor.html
*/
class SplitProcessor extends AbstractProcessor
{
public const DEFAULT_IGNORE_MISSING_VALUE = false;
public function __construct(string $field, string $separator)
$this->setField($field);
$this->setSeparator($separator);
}
* Set the field.
* @return $this
public function setField(string $field): self
return $this->setParam('field', $field);
* Set the separator.
public function setSeparator(string $separator): self
return $this->setParam('separator', $separator);
* Set ignore_missing. Default value false.
* @param bool $ignoreMissing only these values are allowed (integer|float|string|boolean|auto)
public function setIgnoreMissing(bool $ignoreMissing): self
return $this->setParam('ignore_missing', $ignoreMissing);