ES API
2018-08-03 18:54
471 查看
create index:
PUT twitter { "settings" : { "index" : { "number_of_shards" : 3, "number_of_replicas" : 2 } } }
Mapping:
PUT test { "settings" : { "number_of_shards" : 1 }, "mappings" : { "type1" : { "properties" : { "field1" : { "type" : "text" } } } } }
Aliases 类似于index的视图
PUT test { "aliases" : { "alias_1" : {}, "alias_2" : { "filter" : { "term" : {"user" : "kimchy" } }, "routing" : "kimchy" } } }
Wait for active shared:
{ "acknowledged": true, "shards_acknowledged": true, "index": "test" }
PUT test { "settings": { "index.write.wait_for_active_shards": "2" } }
PUT test?wait_for_active_shards=2
相关文章推荐
- Android Manifest 用法
- 什么是 GraphQL?
- Spark RDD API详解(一) Map和Reduce
- Spring Boot 开发微服务
- PHP开发api接口安全验证的实例讲解
- PHP本地进行API接口测试的实例
- PHP服务器端API原理及示例讲解(接口开发)
- lwn拾遗:[sn3218 led drivers]-api解释-1
- 页面元素查找之Selectors API
- Orange--------基于nginx/openresty之API网关(Gateway)实战
- 微服务构建持久 API 的7大规则
- Docker官方Centos镜像下安装Elasticsearch【详细步骤】
- Spring Boot集成ElasticSearch实现简单的增删查改接口
- Centos7.4 安装elasticsearch6.1.3集群部署
- redis 设置rdb和aof的备份方式
- mysql_real_connect()
- python-dnspod:批量添加域名、解析记录和修改解析记录等
- python3.7安装提示api-ms-win-crt-runtime-|1-1-0.dll
- Java8新特性之:新的日期和时间API