Docker 验证证据
🚀 运行/交互
PUT index → bulk docs → _search → _cat/indices → _explaindocker-session.out.txt
$ curl -fsS http://server:9200/
{
"name" : "server",
"cluster_name" : "docker-cluster",
"cluster_uuid" : "H6FtsckXTaWkDuLUlbb7Yw",
"version" : {
"number" : "9.1.3",
"build_flavor" : "default",
"build_type" : "docker",
"build_hash" : "0c781091a2f57de895a73a1391ff8426c0153c8d",
"build_date" : "2025-08-24T22:05:04.526302670Z",
"build_snapshot" : false,
"lucene_version" : "10.2.2",
"minimum_wire_compatibility_version" : "8.19.0",
"minimum_index_compatibility_version" : "8.0.0"
},
"tagline" : "You Know, for Search"
}
$ curl Elasticsearch bulk/search/cat/explain session
{"errors":false,"took":1201,"items":[{"index":{"_index":"hello-items","_id":"1","_version":1,"result":"created","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":0,"_primary_term":1,"status":201}},{"index":{"_index":"hello-items","_id":"2","_version":1,"result":"created","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":1,"_primary_term":1,"status":201}},{"index":{"_index":"hello-items","_id":"3","_version":1,"result":"created","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":2,"_primary_term":1,"status":201}}]}{"_shards":{"total":2,"successful":1,"failed":0}}{"took":71,"timed_out":false,"_shards":{"total":1,"successful":1,"skipped":0,"failed":0},"hits":{"total":{"value":2,"relation":"eq"},"max_score":null,"hits":[{"_index":"hello-items","_id":"3","_score":null,"_source":{"name":"Carol","score":40},"sort":[40]},{"_index":"hello-items","_id":"1","_score":null,"_source":{"name":"Alice","score":30},"sort":[30]}]}}health status index uuid pri rep docs.count docs.deleted store.size pri.store.size dataset.size
yellow open hello-items aO5QrngtTHmMT_VFITeQ5Q 1 1 3 0 5.2kb 5.2kb 5.2kb
{"_index":"hello-items","_id":"1","matched":true,"explanation":{"value":1.0,"description":"score:[30 TO 9223372036854775807]","details":[]}}
curl: (22) The requested URL returned error: 404