文章分类 -  Elastic Search

摘要:Terms Query 能够在结构化的数据中基于精确的值取查询文档。如日期范围,ip地址,价格和产品ID等数据。 和全文检索不同,term-level 查询不会分析“检索词”,会匹配存储字段中的准确的词项。 term-level 查询分类 exists query f返回在指定field上包含被索引 阅读全文
posted @ 2022-06-08 11:35 hhanhao 阅读(709) 评论(0) 推荐(0) 编辑
摘要:优化返回显示 ?pretty=true ?format=yaml 人类可读的 ?human=false 显示信息头 如 _cat 等,可以返回信息头 v=true index shard time type stage source_host source_node target_host targ 阅读全文
posted @ 2022-06-07 17:40 hhanhao 阅读(87) 评论(0) 推荐(0) 编辑
摘要:索引分裂可以将一个索引分裂为一个有更多分片的新索引 用法 POST /<index>/_split/<target-index> PUT /<index>/_split/<target-index> 新索引的分片必须是原先索引分片数的整数倍,同时必须是原先索引配置项 index.number_of_ 阅读全文
posted @ 2022-06-07 16:03 hhanhao 阅读(130) 评论(0) 推荐(0) 编辑
摘要:新建索引 version 8.2 索引设置 索引设置分为静态设置和动态设置。 静态配置只能在索引创建时或对一个closed index进行操作。 动态配置可以通过 update-index-settings 来对一个活动的索引进行设置。 静态配置 index.number_of_shards 索引的 阅读全文
posted @ 2022-06-07 14:16 hhanhao 阅读(876) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示