上一页 1 2 3 4 5 6 7 8 ··· 19 下一页
摘要: 【ElasticSearch(十一)进阶】Mapping的查询、创建、修改、删除 Mapping(映射)是定义文档及其包含的字段的存储和索引方式的处理过程。 例如,使用Mapping定义: 哪些字符串字段应视为全文字段。 哪些字段包含数字,日期或地理位置。 日期值 的格式。 自定义规则,用于控制动态 阅读全文
posted @ 2021-08-24 13:53 musecho 阅读(715) 评论(0) 推荐(0) 编辑
摘要: 【ElasticSearch(十)进阶】Aggregations执行聚合 聚合提供了从数据中分组和提取数据的能力。最简单的聚合方法大致等于 SQL GROUP BY 和 SQL 聚合函数。 在 ElasticSearch 中,你可以执行query和aggs(可以包含多个聚合),返回 结果包含 hit 阅读全文
posted @ 2021-08-24 13:52 musecho 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 【ElasticSearch(九)进阶】Term精确数值查询,match keyword精确文本查询 一、Term精确数值查询 term查询,会返回那些 在提供的字段中包含确切信息 的文档内容。 查询text字段值,使用match。查询精确数值,使用term。 为什么避免使用term对text字段进 阅读全文
posted @ 2021-08-24 13:51 musecho 阅读(889) 评论(0) 推荐(0) 编辑
摘要: 【ElasticSearch(七)进阶】multi_match多字段匹配,bool复合查询 一、multi_match多字段匹配 例:查询 address 和 city 中任意一项包含 mill urie的结果 GET /bank/_search { "query":{ "multi_match": 阅读全文
posted @ 2021-08-24 13:50 musecho 阅读(710) 评论(0) 推荐(0) 编辑
摘要: 【ElasticSearch(八)进阶】filter过滤 布尔查询中的每个must、should和must not元素都称为查询子句。 文档满足 must 或 should 子句中的标准的程度有助于文档的相关性得分。分数越高,文档就越符合我们的搜索条件。默认情况下,ElasticSearch返回会按 阅读全文
posted @ 2021-08-24 13:50 musecho 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 【ElasticSearch(五)进阶】两种_search检索方式,match_all检索,Query DSL基本使用 一、导入测试数据 ElasticSearch官方为我们准备了一部分测试数据供调试使用,我们可以Kinaba内进行数据导入处理 1.获取数据 https://download.ela 阅读全文
posted @ 2021-08-24 13:49 musecho 阅读(625) 评论(0) 推荐(0) 编辑
摘要: 【ElasticSearch(六)进阶】match匹配,match_phrase 短语匹配 一、match进行 基本类型(非字符串)精确匹配 查询 account_number 是 20 的所有结果: GET /bank/_search { "query": { "match": { "accoun 阅读全文
posted @ 2021-08-24 13:49 musecho 阅读(974) 评论(0) 推荐(0) 编辑
摘要: 【ElasticSearch(四)】PUT/POST更新数据、DELETE删除数据、_bulk批量操作 先查询下现在的情况GET http://localhost:9200/customer/external/1 { "_index": "customer", "_type": "external" 阅读全文
posted @ 2021-08-24 13:48 musecho 阅读(1788) 评论(0) 推荐(0) 编辑
摘要: 【ElasticSearch(三)】_cat查看信息 、put&post新增数据、GET 查询数据、乐观锁 一、_cat 查看信息 GET _cat/nodes: 查看所有节点 用postman访问 http://localhost:9200/_cat/nodes GET _cat/health: 阅读全文
posted @ 2021-08-24 13:47 musecho 阅读(520) 评论(0) 推荐(0) 编辑
摘要: 【ElasticSearch(二)】windows安装ElasticSearch 官方安装包链接:https://www.elastic.co/cn/downloads/elasticsearch 官方安装教程:https://www.elastic.co/guide/en/elasticsearc 阅读全文
posted @ 2021-08-24 13:46 musecho 阅读(504) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 19 下一页