1. cat fielddata

原文链接 : https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cat-fielddata.html

译文链接 : http://www.apache.wiki/display/Elasticsearch/cat+fielddata

贡献者 : 那伊抹微笑

fielddata 显示了当前集群中每个数据节点上被 fielddata 所使用的堆内存大小。

curl -XGET 'localhost:9200/_cat/fielddata?v&pretty'

响应如下 :

id                     host      ip        node    field   size
Nqk-6inXQq-OxUfOUI8jNQ 127.0.0.1 127.0.0.1 Nqk-6in body    544b
Nqk-6inXQq-OxUfOUI8jNQ 127.0.0.1 127.0.0.1 Nqk-6in soul    480b

具体的字段可以查询参数中指定,也可以在 URL 路径中指定 :

curl -XGET 'localhost:9200/_cat/fielddata?v&fields=body&pretty'

响应如下 :

id                     host      ip        node    field   size
Nqk-6inXQq-OxUfOUI8jNQ 127.0.0.1 127.0.0.1 Nqk-6in body    544b

也可以接受一个逗号分隔的列表 :

curl -XGET 'localhost:9200/_cat/fielddata/body,soul?v&pretty'

这样跟第一个代码片段的输出结果是一样的 :

id                     host      ip        node    field   size
Nqk-6inXQq-OxUfOUI8jNQ 127.0.0.1 127.0.0.1 Nqk-6in body    544b
Nqk-6inXQq-OxUfOUI8jNQ 127.0.0.1 127.0.0.1 Nqk-6in soul    480b

该输出结果单独的列出了 **body****text**fileldata 字段,每一个节点的每个字段一行。

Copyright © Kilvn 2021. all right reserved,powered by Gitbook最后更新时间: 2021-06-08 20:22:42

results matching ""

    No results matching ""