[英]Elasticsearch 6.2.4 not giving data to query
我們有一個 elasticsearch 在 docker (docker.elastic.co/elasticsearch/elasticsearch: 6.2.4 ) 上運行,它不會向我們的任何查詢返回數據。 在下面粘貼我的查詢和回復。
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":[]}}*
我們里面有數據,我通過 kibana 嘗試了同樣的方法,但沒有運氣,但我可以從 kibana 中的 Discover 選項中看到數據
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
}
任何人都遇到過這個問題。 請給我一些見解。
您可能需要從 URL 中刪除_doc
,因為您的映射類型可能命名不同。
只需運行它
curl -XGET "http://localhost:9200/full_sessions/_search"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.