课程demo
DELETE message PUT message { "settings": { "number_of_shards": 20 } } GET message POST message/_doc?routing=1 { "content":"good" } POST message/_doc?routing=2 { "content":"good morning" } POST message/_doc?routing=3 { "content":"good morning everyone" } POST message/_search { "explain": true, "query": { "match_all": {} } } POST message/_search { "explain": true, "query": { "term": { "content": { "value": "good" } } } } POST message/_search?search_type=dfs_query_then_fetch { "query": { "term": { "content": { "value": "good" } } } }