ElasticSearch
洺鱼
一只萌萌的程序员
展开
-
Elasticsearch查询索引
查询索引名包含"log"字符串的索引列表_cat/indices?format=json&index='*log*'哪个索引的文件数最多?GET /_cat/indices?v&s=docs.count:desc哪些索引状态是 yellow ?GET /_cat/indices?v&health=yellow指定显示哪些列GET /_cat/indices/twitter?pri&v&h=health,index,pri,rep,docs.原创 2022-02-23 00:07:02 · 2117 阅读 · 0 评论 -
ElasticSearch聚合操作的坑
一、date_histogram聚合的坑query: { bool: { must: [ { match_phrase: {day:'20220117'} } ] }},aggs:{ hours:{ date_histogram: { field: 'timestamp', min_doc_count: 0, inter原创 2022-01-18 21:20:01 · 1193 阅读 · 0 评论 -
ElasticSearch对象数组聚合操作
如果我们的文档对象结构如下:{ "id":"123", "extra":[ { "name":"chinese", "score":100, "important":"high" }, { "name":"english", "score":70, "important":"low"原创 2022-01-06 14:31:22 · 1200 阅读 · 0 评论 -
ElasticSearch内容索引
一、es集群二、es索引三、es文档四、es搜索五、es聚合参考:windows ElasticSearch 7.6.0集群搭建【Elasticsearch 7 探索之路】(六)初识 Mapping【Elasticsearch 7 探索之路】(五)搜索相关 Search-API【Elasticsearch 7 探索之路】(四)Analyzer 分析【Elasticsearch 7 探索之路】(三)倒排索引【Elasticsearch 7 探索之路】(二...原创 2021-10-15 20:45:52 · 221 阅读 · 0 评论