当前位置: 首页 > news >正文

ElasticSearch之cat indices API

命令样例如下:

curl -X GET "https://localhost:9200/_cat/indices?v=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"

执行结果输出如下:

health status index            uuid                   pri rep docs.count docs.deleted store.size pri.store.size dataset.size
yellow open   my-index-000001  u8FNjxh8Rfy_awN11oDKYQ   1   1       1200            0     88.1kb         88.1kb       88.1kb
green  open   my-index-000002  nYFWZEO7TUiOjLQXBaYJpA   1   0          0            0       260b           260b         260b

查看帮助,命令如下:

curl -X GET "https://localhost:9200/_cat/indices?v=true&help=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"

执行结果输出如下:

health                           | h                              | current health status
status                           | s                              | open/close status
index                            | i,idx                          | index name
uuid                             | id,uuid                        | index uuid
pri                              | p,shards.primary,shardsPrimary | number of primary shards
rep                              | r,shards.replica,shardsReplica | number of replica shards
docs.count                       | dc,docsCount                   | available docs
docs.deleted                     | dd,docsDeleted                 | deleted docs
creation.date                    | cd                             | index creation date (millisecond value)
creation.date.string             | cds                            | index creation date (as string)
store.size                       | ss,storeSize                   | store size of primaries & replicas
pri.store.size                   |                                | store size of primaries
dataset.size                     |                                | total size of dataset
completion.size                  | cs,completionSize              | size of completion
pri.completion.size              |                                | size of completion
fielddata.memory_size            | fm,fielddataMemory             | used fielddata cache
pri.fielddata.memory_size        |                                | used fielddata cache
fielddata.evictions              | fe,fielddataEvictions          | fielddata evictions
pri.fielddata.evictions          |                                | fielddata evictions
query_cache.memory_size          | qcm,queryCacheMemory           | used query cache
pri.query_cache.memory_size      |                                | used query cache
query_cache.evictions            | qce,queryCacheEvictions        | query cache evictions
pri.query_cache.evictions        |                                | query cache evictions
request_cache.memory_size        | rcm,requestCacheMemory         | used request cache
pri.request_cache.memory_size    |                                | used request cache
request_cache.evictions          | rce,requestCacheEvictions      | request cache evictions
pri.request_cache.evictions      |                                | request cache evictions
request_cache.hit_count          | rchc,requestCacheHitCount      | request cache hit count
pri.request_cache.hit_count      |                                | request cache hit count
request_cache.miss_count         | rcmc,requestCacheMissCount     | request cache miss count
pri.request_cache.miss_count     |                                | request cache miss count
flush.total                      | ft,flushTotal                  | number of flushes
pri.flush.total                  |                                | number of flushes
flush.total_time                 | ftt,flushTotalTime             | time spent in flush
pri.flush.total_time             |                                | time spent in flush
get.current                      | gc,getCurrent                  | number of current get ops
pri.get.current                  |                                | number of current get ops
get.time                         | gti,getTime                    | time spent in get
pri.get.time                     |                                | time spent in get
get.total                        | gto,getTotal                   | number of get ops
pri.get.total                    |                                | number of get ops
get.exists_time                  | geti,getExistsTime             | time spent in successful gets
pri.get.exists_time              |                                | time spent in successful gets
get.exists_total                 | geto,getExistsTotal            | number of successful gets
pri.get.exists_total             |                                | number of successful gets
get.missing_time                 | gmti,getMissingTime            | time spent in failed gets
pri.get.missing_time             |                                | time spent in failed gets
get.missing_total                | gmto,getMissingTotal           | number of failed gets
pri.get.missing_total            |                                | number of failed gets
indexing.delete_current          | idc,indexingDeleteCurrent      | number of current deletions
pri.indexing.delete_current      |                                | number of current deletions
indexing.delete_time             | idti,indexingDeleteTime        | time spent in deletions
pri.indexing.delete_time         |                                | time spent in deletions
indexing.delete_total            | idto,indexingDeleteTotal       | number of delete ops
pri.indexing.delete_total        |                                | number of delete ops
indexing.index_current           | iic,indexingIndexCurrent       | number of current indexing ops
pri.indexing.index_current       |                                | number of current indexing ops
indexing.index_time              | iiti,indexingIndexTime         | time spent in indexing
pri.indexing.index_time          |                                | time spent in indexing
indexing.index_total             | iito,indexingIndexTotal        | number of indexing ops
pri.indexing.index_total         |                                | number of indexing ops
indexing.index_failed            | iif,indexingIndexFailed        | number of failed indexing ops
pri.indexing.index_failed        |                                | number of failed indexing ops
merges.current                   | mc,mergesCurrent               | number of current merges
pri.merges.current               |                                | number of current merges
merges.current_docs              | mcd,mergesCurrentDocs          | number of current merging docs
pri.merges.current_docs          |                                | number of current merging docs
merges.current_size              | mcs,mergesCurrentSize          | size of current merges
pri.merges.current_size          |                                | size of current merges
merges.total                     | mt,mergesTotal                 | number of completed merge ops
pri.merges.total                 |                                | number of completed merge ops
merges.total_docs                | mtd,mergesTotalDocs            | docs merged
pri.merges.total_docs            |                                | docs merged
merges.total_size                | mts,mergesTotalSize            | size merged
pri.merges.total_size            |                                | size merged
merges.total_time                | mtt,mergesTotalTime            | time spent in merges
pri.merges.total_time            |                                | time spent in merges
refresh.total                    | rto,refreshTotal               | total refreshes
pri.refresh.total                |                                | total refreshes
refresh.time                     | rti,refreshTime                | time spent in refreshes
pri.refresh.time                 |                                | time spent in refreshes
refresh.external_total           | rto,refreshTotal               | total external refreshes
pri.refresh.external_total       |                                | total external refreshes
refresh.external_time            | rti,refreshTime                | time spent in external refreshes
pri.refresh.external_time        |                                | time spent in external refreshes
refresh.listeners                | rli,refreshListeners           | number of pending refresh listeners
pri.refresh.listeners            |                                | number of pending refresh listeners
search.fetch_current             | sfc,searchFetchCurrent         | current fetch phase ops
pri.search.fetch_current         |                                | current fetch phase ops
search.fetch_time                | sfti,searchFetchTime           | time spent in fetch phase
pri.search.fetch_time            |                                | time spent in fetch phase
search.fetch_total               | sfto,searchFetchTotal          | total fetch ops
pri.search.fetch_total           |                                | total fetch ops
search.open_contexts             | so,searchOpenContexts          | open search contexts
pri.search.open_contexts         |                                | open search contexts
search.query_current             | sqc,searchQueryCurrent         | current query phase ops
pri.search.query_current         |                                | current query phase ops
search.query_time                | sqti,searchQueryTime           | time spent in query phase
pri.search.query_time            |                                | time spent in query phase
search.query_total               | sqto,searchQueryTotal          | total query phase ops
pri.search.query_total           |                                | total query phase ops
search.scroll_current            | scc,searchScrollCurrent        | open scroll contexts
pri.search.scroll_current        |                                | open scroll contexts
search.scroll_time               | scti,searchScrollTime          | time scroll contexts held open
pri.search.scroll_time           |                                | time scroll contexts held open
search.scroll_total              | scto,searchScrollTotal         | completed scroll contexts
pri.search.scroll_total          |                                | completed scroll contexts
segments.count                   | sc,segmentsCount               | number of segments
pri.segments.count               |                                | number of segments
segments.memory                  | sm,segmentsMemory              | memory used by segments
pri.segments.memory              |                                | memory used by segments
segments.index_writer_memory     | siwm,segmentsIndexWriterMemory | memory used by index writer
pri.segments.index_writer_memory |                                | memory used by index writer
segments.version_map_memory      | svmm,segmentsVersionMapMemory  | memory used by version map
pri.segments.version_map_memory  |                                | memory used by version map
segments.fixed_bitset_memory     | sfbm,fixedBitsetMemory         | memory used by fixed bit sets for nested object field types and type filters for types referred in _parent fields
pri.segments.fixed_bitset_memory |                                | memory used by fixed bit sets for nested object field types and type filters for types referred in _parent fields
warmer.current                   | wc,warmerCurrent               | current warmer ops
pri.warmer.current               |                                | current warmer ops
warmer.total                     | wto,warmerTotal                | total warmer ops
pri.warmer.total                 |                                | total warmer ops
warmer.total_time                | wtt,warmerTotalTime            | time spent in warmers
pri.warmer.total_time            |                                | time spent in warmers
suggest.current                  | suc,suggestCurrent             | number of current suggest ops
pri.suggest.current              |                                | number of current suggest ops
suggest.time                     | suti,suggestTime               | time spend in suggest
pri.suggest.time                 |                                | time spend in suggest
suggest.total                    | suto,suggestTotal              | number of suggest ops
pri.suggest.total                |                                | number of suggest ops
memory.total                     | tm,memoryTotal                 | total used memory
pri.memory.total                 |                                | total user memory
search.throttled                 | sth                            | indicates if the index is search throttled
bulk.total_operations            | bto,bulkTotalOperation         | number of bulk shard ops
pri.bulk.total_operations        |                                | number of bulk shard ops
bulk.total_time                  | btti,bulkTotalTime             | time spend in shard bulk
pri.bulk.total_time              |                                | time spend in shard bulk
bulk.total_size_in_bytes         | btsi,bulkTotalSizeInBytes      | total size in bytes of shard bulk
pri.bulk.total_size_in_bytes     |                                | total size in bytes of shard bulk
bulk.avg_time                    | bati,bulkAvgTime               | average time spend in shard bulk
pri.bulk.avg_time                |                                | average time spend in shard bulk
bulk.avg_size_in_bytes           | basi,bulkAvgSizeInBytes        | average size in bytes of shard bulk
pri.bulk.avg_size_in_bytes       |                                | average size in bytes of shard bulk
dense_vector.value_count         | dvc,denseVectorCount           | total count of indexed dense vector
pri.dense_vector.value_count     |                                | total count of indexed dense vector

相关资料

  • cat indices API
  • Get index API
  • Apache Lucene Core
  • Nested field type
  • cat count API
  • Count API
  • API conventions
  • HTTP accept header

相关文章:

ElasticSearch之cat indices API

命令样例如下: curl -X GET "https://localhost:9200/_cat/indices?vtrue&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPHQBEs5*lo7F9"执行结果输出如下: health status index uuid …...

Composer update 跳过指定依赖

在使用Compose进PHP 依赖管理只时,有时候我们可能希望忽略版本批配,即使依赖项的景新版本已经发布,也然续使用当前的乐本。这种情况下,我们可以使用Composer的 --ignore-platform-reqs 选项来实现 可以使用--ignore-platform-req…...

@RequestMapping详解:请求映射规则

目录 请求-相应模式: 设置请求映射规则RequestMapping POST 请求: GET 请求 请求-相应模式: 前端作为客户端向后端发送请求(请求可以分为请求头和请求体两部分,请求头包含了一些元数据信息,如请求方式、…...

C#中密封类和密封方法

目录 一、定义与特性 1.何时使用密封类 2.定义 3.特性 二、示例 如果所有的类都可以被继承,很容易导致类的层次结构变得十分复杂。使对类的理解和使用变得十分困难。为了避免滥用继承,C#中提出了密封类的概念。 一、定义与特性 密封类可以用来限制…...

Pytorch中的Net.train()和 Net.eval()函数讲解

目录 前言1. Net.train()2. Net.eval()3. 总结 前言 这两个方法通常用于训练和测试阶段 1. Net.train() 该代码用在训练模式中 主要作用: 模型启用了训练时特定的功能(Batch Normalization 和 Dropout)。 在这种模式下,模型会根…...

氪了几百亿,字节游戏停止了“跳动”

目录 一、氪了几百亿,字节游戏停止了“跳动” 二微软推出跨平台框架 ML.NET 3.0 版:强化深度学习、加强AI效率 一、氪了几百亿,字节游戏停止了“跳动” 朝夕光年,扑了 11月26日,脉脉社区的一个截图内容引起大众热议…...

进入docker容器

学习如何进入一个正在运行的容器的内部,要求学习者参照示例,进入一个名为container2的容器内部,并在容器内部创建一个1.txt文件。 相关知识 使容器在后台运行 因为本关要使用docker run -d命令,所以在本关的开始,将…...

C陷阱与缺陷——第5章库函数

1. 返回整数的getchar函数 #include <stdio.h>main() {char c;while((c getchar()) ! EOF){putchar(c);} } 上述函数是错误的&#xff0c;原因在于程序中的变量c被声明为char类型&#xff0c;而不是int类型&#xff0c;这意味着c无法容下所有可能的字符&#xff0c;特…...

【C++上层应用】6. 信号 / 中断

文章目录 【 1. signal 函数 】【 2. raise函数 】 信号是由操作系统传给进程的 中断&#xff0c;会提早终止一个程序。在 UNIX、LINUX、Mac OS X 或 Windows 系统上&#xff0c;可以通过按 CtrlC 产生中断。有些信号不能被程序捕获&#xff0c;但是下表所列信号可以在程序中捕…...

树与二叉树堆:堆的意义

目录 堆的意义&#xff1a; 第一是堆的排序&#xff0c;第二是堆的top k 排行问题 堆的 top k 排行问题&#xff1a; 面对大量数据的top k 问题&#xff1a; 堆排序的实现&#xff1a;——以升序为例 方法一 交换首尾&#xff1a; 建立大堆&#xff1a; 根结点尾结点的…...

什么时候适合做ui自动化测试?什么时候做接口自动化测试

UI自动化测试和接口自动化测试都是软件测试中非常重要的部分&#xff0c;它们各自有适合的应用场景。 适合做UI自动化测试的场景包括&#xff1a; 用户界面&#xff08;UI&#xff09;变化频繁的应用程序。需要测试用户交互和流程的应用程序。需要验证页面布局、样式和交互的…...

[ABC261E] Many Operations(dp,位运算,打表)

[ABC261E] Many Operations - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) Problem Statement We have a variable X and N kinds of operations that change the value of X. Operation i is represented as a pair of integers (Ti​,Ai​), and is the following operati…...

一、爬虫-爬取豆瓣电影案例

1、环境配置 你需要一个pycharm和requests第三方库&#xff0c;在安装完成之后即可继续浏览。 2、操作流程 &#xff08;1&#xff09;打开豆瓣电影网站&#xff0c;点击排行榜&#xff0c;点击喜剧&#xff0c;检查 &#xff08;2&#xff09;可以看到鼠标每次下移&#xff0…...

4G5G防爆执法记录仪、防爆智能安全帽赋能智慧燃气,可视化巡检巡线,安全生产管控

随着燃气使用的普及&#xff0c;燃气安全问题日益突出。传统应急安全问题处理方式暴露出以下问题&#xff1a; 应急预案不完善&#xff1a;目前一些燃气企业的应急预案存在实用性不高、流程不清晰等问题&#xff0c;导致在紧急情况下难以迅速启动和有效执行。 部门协同不流畅…...

武汉数字孪生赋能工业制造,加速推进制造业数字化转型

随着数字孪生技术的不断推进&#xff0c;互联网、物联网、智能传感技术开始应用到数控机床的远程服务&#xff0c;状态监控&#xff0c;故障诊断&#xff0c;维护管理等方面。武汉数字孪生是在虚拟空间中创建物理对象的高保真虚拟模型&#xff0c;以模拟其在现实世界中的行为提…...

安卓密码框、EditText

目录 1. 基础使用 2. 密码的展示与隐藏 (1) 使用setTransformationMethod方法 (2) 使用setInputType方法 3. imeOptions属性 4. 单行设置 在安卓中使用密码框普遍采用EditText设置inputType"textPassword"的方式。 1. 基础使用 <EditTextandroid:id"…...

ROS命令行工具

1、roscore 在使用ROS之前&#xff0c;首先要启动roscore进程。当我们在终端中运行这个命令时&#xff0c;系统就会启动ROS Master、参数服务器和日志节点。在这之后&#xff0c;就可以运行任何其他的ROS程序&#xff0f;节点了。所以可以在一个终端窗口运行roscore指令&#…...

深入浅出 Golang 中的直接依赖和间接依赖管理

目录 引言 直接依赖 间接依赖 为什么需要间接依赖&#xff1f; 如何管理间接依赖&#xff1f; 小结 引言 Golang 中的依赖管理是使用 go mod 进行管理的。go mod 是 Golang 官方推出的依赖管理工具&#xff0c;可以帮助开发者管理项目的依赖关系&#xff0c;确保项目代码…...

深入Python元编程:了解声明与初始化定制元类

更多资料获取 &#x1f4da; 个人网站&#xff1a;ipengtao.com 简介 在Python中&#xff0c;元编程是指在运行时创建或定制类的编程。元类是Python中最强大的元编程工具之一&#xff0c;允许您控制类的创建过程。元类是类的类&#xff0c;它控制类的实例化&#xff0c;允许您…...

[传智杯初赛] 期末考试成绩

传智专修学院的 Java 程序设计课程的评价体系是这样的&#xff1a; 首先&#xff0c;所有学生会有一个卷面得分&#xff0c;这个得分一定是一个 [0,100][0,100] 之间的整数。 如果卷面得分在 9090 分及以上&#xff0c;那么他的 GPA&#xff08;加权平均成绩&#xff09; 就是…...

什么是堡垒机?

一、什么是堡垒机&#xff1f;想象一下&#xff0c;一个巨大的数据中心或公司网络就像一座“城堡”&#xff0c;里面有很多服务器和网络设备&#xff08;服务器、数据库、交换机等&#xff09;&#xff0c;这些就是“城堡里的宝藏”。堡垒机&#xff0c; 就是这个城堡的唯一、受…...

示波器 | 光收发模块眼图测试

前言数字通信与光网络技术高速发展&#xff0c;光收发模块作为光电信号转换的核心器件&#xff0c;已成为数据中心、5G 通信、光纤传输等领域的关键基础组件&#xff0c;其信号质量、传输稳定性与可靠性影响着整个通信系统的运行效率与安全。眼图与误码率作为评估光模块性能的重…...

Qwen2.5-7B-Instruct作品分享:法律条款比对、合同风险点识别结果

Qwen2.5-7B-Instruct作品分享&#xff1a;法律条款比对、合同风险点识别结果 1. 项目背景与模型能力 Qwen2.5-7B-Instruct是阿里通义千问推出的旗舰版大模型&#xff0c;相比轻量级的1.5B/3B版本&#xff0c;7B参数规模带来了质的飞跃。在专业文本处理领域&#xff0c;特别是…...

OpenClaw技能扩展:安装Phi-3-mini-128k-instruct专用Markdown处理器

OpenClaw技能扩展&#xff1a;安装Phi-3-mini-128k-instruct专用Markdown处理器 1. 为什么需要Markdown处理技能 上周我尝试用OpenClawPhi-3-mini-128k-instruct处理技术文档时遇到了尴尬——模型虽然能生成不错的Markdown内容&#xff0c;但当我需要批量转换20多个HTML文件时…...

告别I2C和轮询:用GPIO模拟串行协议读取感为灰度传感器的实战解析

告别I2C和轮询&#xff1a;用GPIO模拟串行协议读取灰度传感器的实战解析 在嵌入式开发中&#xff0c;传感器数据采集是基础但关键的一环。当MCU引脚资源紧张或外设已被占用时&#xff0c;如何高效读取传感器数据成为开发者面临的现实挑战。本文将深入探讨一种仅用两个GPIO口&am…...

VideCoding - Claude Code 核心工作流 (Core Workflow)

欢迎关注我的CSDN&#xff1a;https://spike.blog.csdn.net/ 本文地址&#xff1a;https://spike.blog.csdn.net/article/details/159921522 免责声明&#xff1a;本文来源于个人知识与公开资料&#xff0c;仅用于学术交流&#xff0c;欢迎讨论&#xff0c;不支持转载。 Claude…...

OpenClaw技能开发入门:为Qwen3-14b_int4_awq定制自动化模块

OpenClaw技能开发入门&#xff1a;为Qwen3-14b_int4_awq定制自动化模块 1. 为什么需要自定义Skill 去年冬天&#xff0c;当我第一次尝试用OpenClaw自动整理电脑上的技术文档时&#xff0c;发现现有的通用技能无法完美匹配我的需求——我需要一个能理解Qwen3-14b_int4_awq模型…...

创想三维“闯入”漫展,3D打印赋能Cosplay创作

4月4日&#xff0c;中西部文化巡展漫展现场&#xff0c;天猫“无畏契约主题电竞活动”的电竞装备体验区内&#xff0c;两台创想三维3D打印机——SPARKX i7 Combo和Creality K2 Combo正在高速运转&#xff0c;层层堆叠的PLA耗材逐渐勾勒出精致的Cosplay道具轮廓。周围有许多人围…...

【Hot 100 刷题计划】 LeetCode 45. 跳跃游戏 II | C++ 贪心算法最优解题解

LeetCode 45. 跳跃游戏 II | C 动态规划与贪心 O(N) 双解法题解 &#x1f4cc; 题目描述 题目级别&#xff1a;中等 给定一个长度为 n 的 0 索引整数数组 nums。初始位置在下标 0。 每个元素 nums[i] 表示从索引 i 向后跳转的最大长度。 返回到达 n - 1 的 最小跳跃次数。测试用…...

工业C++内存安全漏洞TOP5:从STL误用到裸指针越界,92%的致命事故源于这3个隐藏陷阱

第一章&#xff1a;工业C内存安全漏洞的严峻现实与行业影响在工业控制、航空航天、智能汽车和电力系统等关键基础设施领域&#xff0c;C因其高性能与底层可控性被广泛采用。然而&#xff0c;其缺乏内存安全机制的本质特性&#xff0c;正持续引发严重事故&#xff1a;从特斯拉Au…...