[英]Elasticsearch 6.2.4 not giving data to query
We have an elasticsearch running on docker (docker.elastic.co/elasticsearch/elasticsearch: 6.2.4 ) which is not returning data to any of our queries.我们有一个 elasticsearch 在 docker (docker.elastic.co/elasticsearch/elasticsearch: 6.2.4 ) 上运行,它不会向我们的任何查询返回数据。 Pasting my query and response below.
在下面粘贴我的查询和回复。
query:
*curl -XGET "http://localhost:9200/full_sessions/_doc/_search"*
Result:
*{"took":0,"timed_out":false,"_shards":{"total":5,"successful":5,"skipped":0,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}*
We have data in it, I tried the same via kibana but no luck but I can see data from Discover option in kibana我们里面有数据,我通过 kibana 尝试了同样的方法,但没有运气,但我可以从 kibana 中的 Discover 选项中看到数据
Screenshot of Kibana Problem Kibana 问题截图
Query:
curl -XGET "http://elasticsearch:9200/_cat/indices"
yellow open xxx_full_sessions xxxxxxxxxxxxxxxxx 5 1 175721 6 245.6mb 245.6mb
Query:
curl -XGET "http://elasticsearch:9200/_cat/health"
{
"cluster_name": "docker-cluster",
"status": "yellow",
"timed_out": false,
"number_of_nodes": 1,
"number_of_data_nodes": 1,
"active_primary_shards": 626,
"active_shards": 626,
"relocating_shards": 0,
"initializing_shards": 0,
"unassigned_shards": 15,
"delayed_unassigned_shards": 0,
"number_of_pending_tasks": 0,
"number_of_in_flight_fetch": 0,
"task_max_waiting_in_queue_millis": 0,
"active_shards_percent_as_number": 97.65990639625585
}
Anyone had faced this issue.任何人都遇到过这个问题。 Please give me some insights.
请给我一些见解。
You might need to remove _doc
from your URL as your mapping type might be named differently.您可能需要从 URL 中删除
_doc
,因为您的映射类型可能命名不同。
Just run this instead只需运行它
curl -XGET "http://localhost:9200/full_sessions/_search"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.