protected function filters(Builder $builder) { return collect($builder->wheres)->map(function ($value, $key) { return ['match_phrase' => [$key => $value]]; })->values()->all(); }