AppSync did't return Highlight response with opensearch resolver

0

Hi have the following schema, example:

type Demo { id: ID! code: String name: String title: String highlight: String }

and my query resolver template looks like this,

{ "version":"2017-02-28", "operation":"GET", "path":"/index/_search", "params":{ "headers":{}, "queryString":{}, "body":{ "query": { "bool": { "filter": { "term": { "code": $util.toJson($context.arguments.code) } }, "must": [ { "bool": { "should": [ { "match_phrase_prefix": { "title": { "query": $util.toJson($context.arguments.title) } } }, { "match_phrase_prefix": { "name": { "query": $util.toJson($context.arguments.name) } } } ] } } ] } }, "highlight": { "fields": { "name": {} } } } } }

all results are getting fine except highlight Does anyone have any idea about this? I want to get highlighting responses in the same query.

沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南