我是学习弹性搜索的新人。当我尝试查询另一个数组中的一个数组时遇到了一些问题。
class ActionRoute(Action):
def name(self):
return 'action_route'
def run(self, dispatcher, tracker, domain):
location = tracker.get_slot('location')
travelmode = tracker.get_slot('travelmode')
data = {
"travelmode":travelmode,
"location":location
}
response = "Hedef: {} ulaşım tercihi:{}".format(location,travelmode)
dispatcher.utter_response(json.dumps(data))
return [SlotSet("location", location),SlotSet("travelmode", travelmode)]
我正在尝试遵循以下规则:https://www.elastic.co/guide/en/elasticsearch/guide/current/_finding_multiple_exact_values.html
但是我不能成功。请帮我解决我的问题。非常感谢。