为什么此查询有0个命中?
我有一个名为“大学”的索引中的“学生” ID的文件。该文档具有以下内容:
{
"1234567": {
name: "Jack",
subject: "Computer Engineering"
}
"7654321": {
name: "John",
subject: "Computer Engineering"
}
}
我想搜索带有名称“ John”的学生。我在Kibana中提出了以下查询:
GET /university/_search
{
"query": {
"match": {
"*.name": "John"
}
}
}
但是此查询有0个命中。为什么?什么是正确的查询?
I have a document with ID of "students" in an index named "university". The document has the following content:
{
"1234567": {
name: "Jack",
subject: "Computer Engineering"
}
"7654321": {
name: "John",
subject: "Computer Engineering"
}
}
I want to search for students with name "John". I came up with the following query in Kibana:
GET /university/_search
{
"query": {
"match": {
"*.name": "John"
}
}
}
But this query has 0 hits. Why? What is the correct query?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
匹配
查询不支持通配的字段名称。使用 /代码> 而不是:The
match
query doesn't support wildcarded field names. Usemulti_match
instead: