Cake\ElasticSearch\FilterBuilder::ids PHP Method

ids() public method

Filters documents that only have the provided ids.
See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-ids-filter.html
public ids ( array $ids = [], string | array $type = null ) : Elastica\Filter\Ids
$ids array The list of ids to filter by.
$type string | array A single or multiple types in which the ids should be searched.
return Elastica\Filter\Ids
    public function ids(array $ids = [], $type = null)
    {
        return new Filter\Ids($type, $ids);
    }