apply_filters( 'ep_search_suggestion_collate', $collate, $formatted_args ) → {array}
Filter the collate query that limits Did You Mean suggestions to content the search can return.
The collate query runs as an inline Mustache template. Clusters that do not allow inline scripts reject the whole search request, so those sites can return an empty value here to remove the collate.
Parameters:
| Name | Type | Description |
|---|---|---|
$collate |
array | Collate settings of the phrase suggester |
$formatted_args |
array | Formatted Elasticsearch query |
- Since:
- 5.3.7
- Source:
Returns:
New collate settings. An empty value removes the collate.
- Type
- array