GET /test_index/_search{ "query": { "bool": { "must": { "match": { "name": "tom" }}, "should": [ { "match": { "hired": true }}, { "bool": { "must": { Read More
posted @ 2018-03-07 21:36 秦先生的客栈 Views(24387) Comments(0) Diggs(0) Edit
只能创建index时手动建立mapping,或者新增field mapping,但是不能update field mapping 1、手动建立mappingPUT /website{ "mappings": { "article": { "properties": { "author_id": { Read More
posted @ 2018-03-07 21:34 秦先生的客栈 Views(517) Comments(0) Diggs(0) Edit
(1)往es里面直接插入数据,es会自动建立索引,同时建立type以及对应的mapping (2)mapping中就自动定义了每个field的数据类型 (3)不同的数据类型(比如说text和date),可能有的是exact value,有的是full text (4)exact value,在建立倒 Read More
posted @ 2018-03-07 21:31 秦先生的客栈 Views(6753) Comments(0) Diggs(0) Edit