RSS Feed/News Can't access raw ES response

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
29,047
Points
823

Reputation:

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?

Continue reading...
 
Status
Not open for further replies.
Top