当前位置: 首页 > 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; 就是…...

PHP和Node.js哪个更爽?

先说结论&#xff0c;rust完胜。 php&#xff1a;laravel&#xff0c;swoole&#xff0c;webman&#xff0c;最开始在苏宁的时候写了几年php&#xff0c;当时觉得php真的是世界上最好的语言&#xff0c;因为当初活在舒适圈里&#xff0c;不愿意跳出来&#xff0c;就好比当初活在…...

【解密LSTM、GRU如何解决传统RNN梯度消失问题】

解密LSTM与GRU&#xff1a;如何让RNN变得更聪明&#xff1f; 在深度学习的世界里&#xff0c;循环神经网络&#xff08;RNN&#xff09;以其卓越的序列数据处理能力广泛应用于自然语言处理、时间序列预测等领域。然而&#xff0c;传统RNN存在的一个严重问题——梯度消失&#…...

LLM基础1_语言模型如何处理文本

基于GitHub项目&#xff1a;https://github.com/datawhalechina/llms-from-scratch-cn 工具介绍 tiktoken&#xff1a;OpenAI开发的专业"分词器" torch&#xff1a;Facebook开发的强力计算引擎&#xff0c;相当于超级计算器 理解词嵌入&#xff1a;给词语画"…...

【C语言练习】080. 使用C语言实现简单的数据库操作

080. 使用C语言实现简单的数据库操作 080. 使用C语言实现简单的数据库操作使用原生APIODBC接口第三方库ORM框架文件模拟1. 安装SQLite2. 示例代码:使用SQLite创建数据库、表和插入数据3. 编译和运行4. 示例运行输出:5. 注意事项6. 总结080. 使用C语言实现简单的数据库操作 在…...

多种风格导航菜单 HTML 实现(附源码)

下面我将为您展示 6 种不同风格的导航菜单实现&#xff0c;每种都包含完整 HTML、CSS 和 JavaScript 代码。 1. 简约水平导航栏 <!DOCTYPE html> <html lang"zh-CN"> <head><meta charset"UTF-8"><meta name"viewport&qu…...

SQL慢可能是触发了ring buffer

简介 最近在进行 postgresql 性能排查的时候,发现 PG 在某一个时间并行执行的 SQL 变得特别慢。最后通过监控监观察到并行发起得时间 buffers_alloc 就急速上升,且低水位伴随在整个慢 SQL,一直是 buferIO 的等待事件,此时也没有其他会话的争抢。SQL 虽然不是高效 SQL ,但…...

Qt的学习(一)

1.什么是Qt Qt特指用来进行桌面应用开发&#xff08;电脑上写的程序&#xff09;涉及到的一套技术Qt无法开发网页前端&#xff0c;也不能开发移动应用。 客户端开发的重要任务&#xff1a;编写和用户交互的界面。一般来说和用户交互的界面&#xff0c;有两种典型风格&…...

LangChain【6】之输出解析器:结构化LLM响应的关键工具

文章目录 一 LangChain输出解析器概述1.1 什么是输出解析器&#xff1f;1.2 主要功能与工作原理1.3 常用解析器类型 二 主要输出解析器类型2.1 Pydantic/Json输出解析器2.2 结构化输出解析器2.3 列表解析器2.4 日期解析器2.5 Json输出解析器2.6 xml输出解析器 三 高级使用技巧3…...

用js实现常见排序算法

以下是几种常见排序算法的 JS实现&#xff0c;包括选择排序、冒泡排序、插入排序、快速排序和归并排序&#xff0c;以及每种算法的特点和复杂度分析 1. 选择排序&#xff08;Selection Sort&#xff09; 核心思想&#xff1a;每次从未排序部分选择最小元素&#xff0c;与未排…...

vxe-table vue 表格复选框多选数据,实现快捷键 Shift 批量选择功能

vxe-table vue 表格复选框多选数据&#xff0c;实现快捷键 Shift 批量选择功能 查看官网&#xff1a;https://vxetable.cn 效果 代码 通过 checkbox-config.isShift 启用批量选中,启用后按住快捷键和鼠标批量选取 <template><div><vxe-grid v-bind"gri…...