-
Aivaras Gotovskis authoredAivaras Gotovskis authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Prefix.md 544 B
Prefix Filter
More info about prefix filter is in the official elasticsearch docs
Filters documents that have fields containing terms with a specified prefix.
Simple example
{
"filter" : {
"prefix" : { "user" : "ki" }
}
}
And now the query via DSL:
$termFilter = new PrefixFilter('user', 'ki');
$search = new Search();
$search->addFilter($termFilter);
$queryArray = $search->toArray();