[英]Unable to execute a simple query via elasticsearch-head
I am trying to execute some query on elasticsearch using the plugin head and the web interface. 我正在尝试使用插件头和Web界面在elasticsearch上执行一些查询。 But at the moment I have no result. 但是目前我还没有结果。 It's just a simple query. 这只是一个简单的查询。
So it is what I type in the form. 这就是我在表格中输入的内容。 In fact it returns me all the contents of the indexed dataset. 实际上,它返回了索引数据集的所有内容。 "Origin" is one of my fields and "ROA" a correct value. “来源”是我的字段之一,“ ROA”是正确的值。
Here is a part of the result : 这是结果的一部分:
{
took: 531
timed_out: false
_shards: {
total: 5
successful: 5
failed: 0
}
hits: {
total: 47925065
max_score: 1
hits: [
{
It should return me about 35 000 result. 它应该返回我大约35000的结果。
Thanks for helping. 感谢您的帮助。
Ok my bad I found the solution. 好吧,我不好,我找到了解决方案。
I had to set "Post" method isntead of "Get". 我必须设置“获取”的“发布”方法。
And the correct Json was : 正确的Json是:
{
"query": {
"match": {
"Year": "1987"
}
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.