摘要: 索引:相当于数据库,ElasticeSearch 有1个或多个Lucene 索引构成。 文档:相当于数据库的行,由一个或多个字段组成。 类型:相当于数据库表 映射:存储分析链所需的所有信息 节点:单个ElasticSearch 实例被称为节点(Node),很多时候数据访问量很大,单机无法应付,就需要 阅读全文
posted @ 2017-12-27 20:42 小蚕豆 阅读(415) 评论(0) 推荐(0) 编辑
摘要: Cluster Health Wait for status You can use the cluster health API to wait for a specific status for the whole cluster or for a given index: client.adm 阅读全文
posted @ 2017-12-27 20:03 小蚕豆 阅读(737) 评论(0) 推荐(0) 编辑
摘要: static final Builder builder = Settings.builder().put("index.analysis.search_analyzer.default.type", "ik_smart") .put("index.analysis.analyzer.default 阅读全文
posted @ 2017-12-27 19:59 小蚕豆 阅读(2088) 评论(0) 推荐(0) 编辑
摘要: Bool Query 用于组合多个叶子或复合查询子句的默认查询 must 相当于 与 & = must not 相当于 非 ~ != should 相当于 或 | or filter 过滤 SearchRequest sr = new SearchRequest(); //指定索引名称,如未指定则会 阅读全文
posted @ 2017-12-27 19:34 小蚕豆 阅读(14287) 评论(1) 推荐(0) 编辑