【发布时间】:2018-06-11 02:08:42
【问题描述】:
我正在尝试在 kibana 中使用 match_phrase 查询搜索以下文档,但没有得到响应。
请在下面找到弹性搜索中可用的文档
{
"took":7,
"timed_out":false,
"_shards":{
"total":5,
"successful":5,
"skipped":0,
"failed":0
},
"hits":{
"total":2910,
"max_score":1.0,
"hits":[
{
"_index":"documents",
"_type":"doc",
"_id":"DmLD22MBFTg0XFZppYt8",
"_score":1.0,
"_source":{
"doct_country":"DE",
"filename":"series_Accessories_v1_de-DE.pdf",
}
]
}
}
请找到用于搜索上述文档的查询。
GET documents/_search
{
"query": {
"match_phrase" : {
"message" : "Accessories_v1_de-DE.pdf"
}
}
}
对于上述查询,我得到了这个响应:
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 0,
"max_score": null,
"hits": []
}
}
【问题讨论】:
标签: java elasticsearch kibana elastic-stack