摘要:
BulkByScrollResponse response = DeleteByQueryAction.INSTANCE.newRequestBuilder(client) // transport client .filter(QueryBuilders.matchQuery("gender", 阅读全文
摘要:
一、创建索引 /**** * Setting 相关设置 */ static final Builder builder = Settings.builder().put("index.analysis.search_analyzer.default.type", "ik_smart") .put(" 阅读全文
摘要:
ElasticSearch 允许将一个JSON字符串作为文档。 生成JSON文档有下面几种方式: Manually (aka do it yourself) using native byte[] or as a String(自己构造byte[] 或者json串) Using a Map that 阅读全文
摘要:
/** * 初始化EsClient * * @param esClusterDomain * @param esClusterName */ private static void initClient(String esClusterDomain, String esClusterName) { 阅读全文