elasticseach修改索引数
- 命令行修改
curl -H "Content-Type: application/json" -XPUT 'http://user:password@ip:9200/os_syslog.windows-2019.11.04/_settings' -d'{"number_of_replicas":0}'
- dsl语句
PUT */_settings
{
"index": {
"number_of_replicas": 0
}
}
为高亮显示请求分析的最大字符偏移量
PUT /_settings
{
"index": {
"highlight.max_analyzed_offset": 5000000
}
}