首先将文本field的fielddata属性设置为true,否则会报错PUT /ecommerce/_mapping/product{ "properties" : { "tags" : { "type" : "text", "fielddata" : true } }} 1、计算每个tag下的商品 Read More
1、query string search2、query DSL3、query filter4、full-text search5、phrase search6、highlight search***************************************************** Read More
1、新增商品:新建文档,建立索引PUT /index/type/id{ "json数据"}例如:PUT /ecommerce/product/1{ "name" : "tcl", "desc" : "4k gaoqing", "price" : 3000, "tags" : ["zhineng"," Read More
GET /_cat/health?vepoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_per Read More