Cake\ElasticSearch\FilterBuilder::indices PHP Method

indices() public method

### Example: {{{ $builder->indices( ['index1', 'index2'], $builder->term('user', 'jhon'), $builder->term('tag', 'wow') ); }}}
See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-indices-filter.html
public indices ( array $indices, Elastica\Filter\AbstractFilter $match, Elastica\Filter\AbstractFilter $noMatch ) : Elastica\Filter\Indices
$indices array The indices where to apply the filter.
$match Elastica\Filter\AbstractFilter Filter which will be applied to docs in the specified indices.
$noMatch Elastica\Filter\AbstractFilter Filter to apply to documents not present in the specified indices.
return Elastica\Filter\Indices
    public function indices(array $indices, AbstractFilter $match, AbstractFilter $noMatch)
    {
        return (new Filter\Indices($match, $indices))->setNoMatchFilter($noMatch);
    }