【发布时间】:2018-10-10 14:06:39
【问题描述】:
我正在尝试找到一种方法,可以使用本机语法构建我的 $params 数组以搜索名称等于“测试”的帖子:
$params = [
"index" => "post_index",
"type" => "post",
'body' => [
'query' => [
'match' => [
'name' => 'test'
]
]
]
];
$result = $finder->find($params);
不幸的是,我收到了这个错误:
[index] 中 VALUE_STRING 的未知键。
我知道我可以使用一些 Elastic\Query\Match 来构建我的查询。
【问题讨论】:
标签: elasticsearch foselasticabundle