elasticsearch API列表
2017-02-06 14:09
253 查看
获取当前的所有配置
curl -XPUT 'http://localhost:9200/_all/_settings'
{"debitlist":{"settings":{"index":{"creation_date":"1485160809262","number_of_shards":"1","number_of_replicas":"0","version":{"created":"1060299"},"uuid":"f5_trQOERqWoHTDqdbMTxw"}}}
会返回所有的索引,创建日期、主分片数量、从分片数量等信息
获取文档数量
curl -XPUT 'http://localhost:9200/_count?pretty'
_count?pretty 可以简写为_count
查看 cluster health
_cluster/health
curl -XPUT 'http://localhost:9200/_count/health'
官方关于elasticsearch 配置的说明
# These settings directly affect the performance of index and search operations
# in your cluster. Assuming you have enough machines to hold shards and
# replicas, the rule of thumb is:
#
# 1. Having more *shards* enhances the _indexing_ performance and allows to
# _distribute_ a big index across machines.
# 2. Having more *replicas* enhances the _search_ performance and improves the
# cluster _availability_.
#
# The "number_of_shards" is a one-time setting for an index.
#
# The "number_of_replicas" can be increased or decreased anytime,
# by using the Index Update Settings API.
#
# Elasticsearch takes care about load balancing, relocating, gathering the
# results from nodes, etc. Experiment with different settings to fine-tune
# your setup.
# Use the Index Status API (<http://localhost:9200/A/_status>) to inspect
# the index status.
curl -XPUT 'http://localhost:9200/_all/_settings'
{"debitlist":{"settings":{"index":{"creation_date":"1485160809262","number_of_shards":"1","number_of_replicas":"0","version":{"created":"1060299"},"uuid":"f5_trQOERqWoHTDqdbMTxw"}}}
会返回所有的索引,创建日期、主分片数量、从分片数量等信息
获取文档数量
curl -XPUT 'http://localhost:9200/_count?pretty'
_count?pretty 可以简写为_count
查看 cluster health
_cluster/health
curl -XPUT 'http://localhost:9200/_count/health'
官方关于elasticsearch 配置的说明
# These settings directly affect the performance of index and search operations
# in your cluster. Assuming you have enough machines to hold shards and
# replicas, the rule of thumb is:
#
# 1. Having more *shards* enhances the _indexing_ performance and allows to
# _distribute_ a big index across machines.
# 2. Having more *replicas* enhances the _search_ performance and improves the
# cluster _availability_.
#
# The "number_of_shards" is a one-time setting for an index.
#
# The "number_of_replicas" can be increased or decreased anytime,
# by using the Index Update Settings API.
#
# Elasticsearch takes care about load balancing, relocating, gathering the
# results from nodes, etc. Experiment with different settings to fine-tune
# your setup.
# Use the Index Status API (<http://localhost:9200/A/_status>) to inspect
# the index status.
相关文章推荐
- ElasticSearch API备忘录列表
- HBase客户端API-过滤器列表
- elasticsearch-java api之过滤
- elasticsearch-java api之搜索(三)
- elasticsearch之Document APIs【Delete By Query API】
- 26.Elasticsearch API初步进阶
- elasticsearch 编程api 1
- 实时搜索引擎Elasticsearch(4)——Aggregations (聚合)API的使用
- ElasticSearch 6.x 学习笔记:33.Java API之指标聚合
- Elasticsearch的Java API使用
- ElasticSearch5.4.3 环境搭建 2017 (5.1-Java Api x-pack补充说明)
- 不使用API获得指定文件夹文件列表
- 分布式搜索引擎Elasticsearch PHP类封装 使用原生api
- Elasticsearch API操作01
- Elasticsearch中使用ik分词器 java api
- 利用python调用elasticsearch-api来分析数据并作图进行日报邮件发送
- 实时搜索引擎Elasticsearch(3)——查询API的使用
- elasticsearch常用的java API
- ElasticSearch2.3.4之Java Api调用例子
- Elasticsearch学习随笔(二)-- Index 和 Doc 查询新建API总结