apply_filters ( 'jetpack_search_es_query_args', array $es_query_args, WP_Query $query )

Modify the underlying ES query that is passed to the search endpoint. The returned args must represent a valid ES query<p>This filter is harder to use if you're unfamiliar with ES, but allows complete control over the query</p>

Source file: modules/search/class.jetpack-search.php

View in GitHub

Parameters

$es_query_args

(array) The raw Elasticsearch query args.

$query

(WP_Query) The original WP_Query object.


Changelog

Since: Jetpack 5.0.0


Notes

Have a note to contribute?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s