change the field to on make query #90

This commit is contained in:
Vinícius Nunes 2019-10-28 16:41:03 -03:00
parent 01beaf8729
commit 109e857fe3
1 changed files with 1 additions and 1 deletions

View File

@ -584,7 +584,7 @@ class Elastic_Press {
}
if($search != '') {
$formatted_args['query']['bool']['must'][] = ["wildcard"=>["$field.name.raw" => "*$search*"]];
$formatted_args['query']['bool']['must'][] = ["wildcard"=>["$field.name.sortable" => "*$search*"]];
}
} else {
$aggs[$id] = [