Can't access raw ES response

Kirby

Well-known member
Affected version
2.3.5
While it is easy to modify DSL when searching, it is not as easy to process results as the raw response only seems to be exposed kinda in the middle of XFES\Search\Source\Elasticsearch which makes it complicated to work with.

Could smth. like
PHP:
protected function processResponse(Query\Query $query, array &$response, array $dsl): void

that gets called before

PHP:
if (!$response || !isset($response['hits']['hits']))
be added to the class?
 
Back
Top Bottom