Settings 和 Mappings_Settings | 学习笔记

简介: 快速学习 Settings 和 Mappings_Settings

开发者学堂课程【ElasticSearch 入门精讲Settings 和 Mappings_Settings学习笔记,与课程紧密连接,让用户快速学习知识。

课程地址https://developer.aliyun.com/learning/course/631/detail/10026


Settings 和 Mappings_Settings

维护索引库默认配置,当然经常用来修改默认配置。

例如∶分片数量,副本数量

看:

curl-XGET http://localhost:9200/bigdata/_settings?pretty178

操作不存在的索引:

curl -XPUT "localhost:9200/bigdata/

d"{"settings":{""number_of_shards":3,"number_of_replicas":2})

image.png

操作已存在的索引:

curl -XPUT "localhost:9200/bigdata/_settings'

-d"{"index":{"number_of_replicas":2)}

image.png

image.png

注意:

number of shards 是在建立索引库时指定的,此后不能修改。

删除:

image.png

相关文章
|
Unix Linux iOS开发
FastAPI(64)- Settings and Environment Variables 配置项和环境变量(下)
FastAPI(64)- Settings and Environment Variables 配置项和环境变量(下)
478 0
FastAPI(64)- Settings and Environment Variables 配置项和环境变量(下)
|
Java 数据库 Android开发
|
搜索推荐 开发者 索引
Settings 和 Mappings_Settings|学习笔记
快速学习 Settings 和 Mappings_Settings。
72 0
|
存储 自然语言处理 数据库
Settings 和 Mappings_Settings_Ⅰ_介绍 | 学习笔记
快速学习 Settings 和 Mappings_Settings_Ⅰ_介绍
75 0
Settings 和 Mappings_Settings_Ⅰ_介绍 | 学习笔记
|
存储 自然语言处理 数据库
Settings 和 Mappings_Settings_Ⅱ_实例 | 学习笔记
快速学习 Settings 和 Mappings_Settings_Ⅱ_实例
69 0
Settings 和 Mappings_Settings_Ⅱ_实例 | 学习笔记
|
存储 自然语言处理 数据库
Settings 和 Mappings_Mappings_Ⅰ_介绍|学习笔记
快速学习 Settings 和 Mappings_Mappings_Ⅰ_介绍。
63 0
|
JSON BI 数据格式
Settings 和 Mappings_Mappings_Ⅱ_案例|学习笔记
快速学习 Settings 和 Mappings_Mappings_Ⅱ_案例。
63 0
|
Java 开发者 索引
Settings 和 Mappings_概述|学习笔记
快速学习 Settings 和 Mappings_概述。
45 0
|
SQL Java 开发者
Settings 和 Mappings_概述 | 学习笔记
快速学习 Settings 和 Mappings_概述
63 0
|
API 数据库 数据安全/隐私保护
FastAPI(64)- Settings and Environment Variables 配置项和环境变量(上)
FastAPI(64)- Settings and Environment Variables 配置项和环境变量(上)
455 0
FastAPI(64)- Settings and Environment Variables 配置项和环境变量(上)