• action

    did_jetpack_search_query

    Fires after a search request has been performed. Includes the following info in the $query parameter: 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

  • filter

    jetpack_search_es_wp_query_args

    Modify the search query parameters, such as controlling the post_type. These arguments are in the format of WP_Query arguments

  • filter

    jetpack_search_es_query_args

    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