apply_filters( 'ep_get_hits_from_query', $hits, $response ) → {array}
Filter Elasticsearch allows to flatten hits, if searched hits are come within aggregations.
Parameters:
Name | Type | Description |
---|---|---|
$hits |
array | from Elasticsearch |
$response |
response | Raw response from Elasticsearch |
- Source:
- See:
Returns:
hits
- Type
- array