elasticsearch API列表

获取当前的所有配置

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.

时间: 2024-08-12 11:17:14

elasticsearch API列表的相关文章

常用控件产品官方文档/手册/API列表

.netCHARTING报表图表控件 文档帮助手册 Ab3d.PowerToys  文档帮助手册Ab3d.Reader3ds  文档帮助手册ABViewer  文档帮助手册(工程图纸文档管理系统)Active DJ Studio  文档帮助手册Active Sound Editor  文档帮助手册Active Sound Recorder  文档帮助手册ActivePatch  文档帮助手册(程序自动升级控件)Animated Chart  文档帮助手册BB FlashBack  文档帮助手册B

Python Elasticsearch API操作ES集群

环境 Centos 7.4 Python 2.7 Pip 2.7 MySQL-python 1.2.5 Elasticsearc 6.3.1 Elasitcsearch6.3.2 知识点 调用Python Elasticsearh API Python Mysqldb使用 DSL查询与聚合 Pyehon 列表操作 代码 #!/usr/bin/env python # -*- coding: utf-8 -*- #minyt 2018.9.1 #获取24小时内出现的模块次数 # 该程序通过elas

Python Elasticsearch api

描述:ElasticSearch是一个基于Lucene的搜索服务器.它提供了一个分布式多用户能力的全文搜索引擎,基于RESTful web接口.下面介绍了利用Python API接口进行数据查询,方便其他系统的调用. 安装API 1 pip install elasticsearch 建立es连接 1 2 from elasticsearch import Elasticsearch es = Elasticsearch([{'host':'10.10.13.12','port':9200}])

使你的C/C++代码支持Unicode(CRT字符串处理的所有API列表,甚至有WEOF字符存在)

悉Microsoft支持Unicode的方式. 它的主要目的是方便你查询相关的数据类型和函数,以及修正相应的拼写错误. I18nGuy 主页 XenCraft (Unicode 咨询公司) English My thanks to Yaker Gong for the translation to Chinese. Xie Xie! 使你的C/C++代码支持Unicode的第一步 定义宏 _UNICODE, 如果定义了宏 _MBCS 则取消它的定义(undefine). 在字符串前添加 L 标记

控件产品官方文档/手册/API列表汇总

.netCHARTING报表图表控件 文档帮助手册Ab3d.PowerToys 文档帮助手册Ab3d.Reader3ds 文档帮助手册ABViewer 文档帮助手册 (工程图纸文档管理系统)Active DJ Studio 文档帮助手册Active Sound Editor 文档帮助手册Active Sound Recorder 文档帮助手册ActivePatch 文档帮助手册 (程序自动升级控件)Animated Chart 文档帮助手册BB FlashBack 文档帮助手册BB FlashB

常用控件产品官方文档/手册/API列表 c#控件文档API列表 asp.net控件产品技术文档中文版

.netCHARTING报表图表控件 文档帮助手册Ab3d.PowerToys 文档帮助手册Ab3d.Reader3ds 文档帮助手册ABViewer 文档帮助手册 (工程图纸文档管理系统)Active DJ Studio 文档帮助手册Active Sound Editor 文档帮助手册Active Sound Recorder 文档帮助手册ActivePatch 文档帮助手册 (程序自动升级控件)Animated Chart 文档帮助手册BB FlashBack 文档帮助手册BB FlashB

Elasticsearch Java API 很全的整理

Elasticsearch 的API 分为 REST Client API(http请求形式)以及 transportClient API两种.相比来说transportClient API效率更高,transportClient 是通过Elasticsearch内部RPC的形式进行请求的,连接可以是一个长连接,相当于是把客户端的请求当成 Elasticsearch 集群的一个节点.但是从Elasticsearch 7 后就会移除transportClient .主要原因是transportCl

针对 ElasticSearch .Net 客户端的一些封装

ElasticSearch是一个基于Lucene的搜索服务器.它提供了一个分布式多用户能力的全文搜索引擎,基于RESTful web接口.Elasticsearch是用Java开发的,并作为Apache许可条款下的开放源码发布,是当前流行的企业级搜索引擎.设计用于云计算中,能够达到实时搜索,稳定,可靠,快速,安装使用方便. ElasticSearch 为.net提供了两个客户端,分别是 Elasticsearch.Net  和  NEST Elasticsearch.net为什么会有两个客户端?

Ubuntu 16.04安装Elasticsearch,Logstash和Kibana(ELK)Filebeat

https://www.howtoing.com/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-ubuntu-16-04 在本教程中,我们将在安装Elasticsearch ELK在Ubuntu 16.04(即,Elasticsearch 2.3.x版本,Logstash 2.3.x版本,并Kibana 4.5.x).我们也将告诉你如何配置它收集和可视化你的系统的系统日志进行集中... 分类:UbuntuUbuntu