ScoutEngines\Elasticsearch\ElasticsearchEngine::filters PHP Method

filters() protected method

Get the filter array for the query.
protected filters ( Laravel\Scout\Builder $builder ) : array
$builder Laravel\Scout\Builder
return array
    protected function filters(Builder $builder)
    {
        return collect($builder->wheres)->map(function ($value, $key) {
            return ['match_phrase' => [$key => $value]];
        })->values()->all();
    }