Modify the underlying ES query that is passed to the search endpoint. The returned args must represent a valid ES query This filter is harder to use if you’re unfamiliar with ES, but allows complete control over the query
Parameters
- $es_query_args
array The raw Elasticsearch query args.
- $query
WP_Query The original WP_Query object.
Changelog
- Introduced in Jetpack 5.0.0