Fixed 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?
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XFES release (2.3.8).

Change log:
Make it easier to access raw ElasticSearch response
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom