摘要: 1、准备数据 PUT /lib { "settings":{ "number_of_shards":3, "number_of_replicas":0 }, "mappings":{ "user":{ "properties":{ "name":{ "type":"text", "analyzer" 阅读全文
posted @ 2019-09-01 19:38 雷雨客 阅读(2270) 评论(0) 推荐(1)
摘要: match 查询知道分词器的存在,会对field进行分词操作,然后再查询。而term不会分词,会把field当成一个整体查询。 1、数据准备 PUT /lib { "settings":{ "number_of_shards":3, "number_of_replicas":0 }, "mappin 阅读全文
posted @ 2019-09-01 14:58 雷雨客 阅读(1887) 评论(0) 推荐(0)