Action: ep_retrieve_raw_response

do_action( 'ep_retrieve_raw_response', $response, $query, $query_args, $query_object )

Fires after valid Elasticsearch query

Parameters:
Name Type Description
$response array

Elasticsearch request

$query array

Prepared Elasticsearch query

$query_args array

Current WP Query arguments

$query_object mixed

Could be WP_Query, WP_User_Query, etc.

Source: