curl -XPOST http://localhost:9200/btcs-all-in-one/_create/1 -H 'Content-Type:application/json' -d'
{"message":"this is hello your world"}'
curl -XPOST http://localhost:9200/btcs-all-in-one/_create/2 -H "Content-Type: application/json" -d'
{"message":"this is hello world"}'
curl -XPOST http://localhost:9200/btcs-all-in-one/_create/3 -H "Content-Type: application/json" -d'
{"message":"this is hello and that is world"}'
curl -XPOST http://localhost:9200/btcs-all-in-one/_create/4 -H "Content-Type: application/json" -d'
{"message":" this is hello only"}'
curl -XPOST http://localhost:9200/btcs-all-in-one/_create/5 -H "Content-Type: application/json" -d'
{"message":" this is world only"}'
一、建立index
curl -XPUT "localhost:9200/btcs-all-in-one"
二、设置mapping
三、写入docs
四、查询包含hello world字符的doc
返回结果如下,请问什么“this is hello and that is world”会被匹配?