摘要: package com.zxwa.ntmss.process.common.util; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONO 阅读全文
posted @ 2021-01-06 21:43 Bonnie_ξ 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 1.以下是封装了ES常用的基本方法,可以用来做一些简单的测试。 如:获取ES的TransportClient/IndicesAdminClient、判定索引是否存在、创建索引、设置mapping、删除索引、插入文档。 package com.bas.util; import org.elastics 阅读全文
posted @ 2021-01-06 15:27 Bonnie_ξ 阅读(347) 评论(0) 推荐(0) 编辑
摘要: "mappings": { "player": { "properties": { "name": { "index": "not_analyzed", "type": "string" }, "age": { "type": "integer" }, "salary": { "type": "in 阅读全文
posted @ 2021-01-06 15:21 Bonnie_ξ 阅读(976) 评论(0) 推荐(0) 编辑