Browsing hooks for feature: Jetpack Search

    jetpack_search_should_handle_query

    hook (filter): Determine whether a given WP_Query should be handled by ElasticSearch.

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

    did_jetpack_search_query

    hook (action): Fires after a search request has been performed.<p>Includes the following info in the $query parameter:</p> <p>array args Array of Elasticsearch arguments for the search array response Raw API response, JSON decoded int response_code HTTP response code of the request float elapsed_time Roundtrip time of the search request, in milliseconds float es_time Amount of time Elasticsearch spent running the request, in milliseconds string url API url that was queried</p>

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

    jetpack_search_es_wp_query_args

    hook (filter): Modify the search query parameters, such as controlling the post_type.<p>These arguments are in the format of WP_Query arguments</p> View Example

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

    jetpack_search_es_query_args

    hook (filter): 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: modules/search/class.jetpack-search.php:710

    jetpack_search_taxonomy_query_var

    hook (filter): Modify the query var to use for a given taxonomy

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