Filter: ep_es_query_results

apply_filters( 'ep_es_query_results', $results, $response, $query, $query_args, $query_object ) → {array}

Filter Elasticsearch query results

Parameters:
Name Type Description
$results array

Results from Elasticsearch

$results.found_documents int

Total number of documents.

$results.documents array

Array of documents.

$results.aggregations array

Array of aggregations.

$results.suggest array

Array of suggestions.

$response response

Raw response from Elasticsearch

$query array

Raw Elasticsearch query

$query_args array

Query arguments

$query_object mixed

Could be WP_Query, WP_User_Query, etc.

Source:
Returns:

New results

Type
array