PUT _all
{
"settings": {
"analysis": {
"analyzer": {
"my_analyzer": {
"tokenizer": "ngram_one_word"
}
},
"tokenizer": {
"ngram_one_word": {
"type": "ngram",
"min_gram": 1,
"max_gram": 16,
"filter": [ "lowercase" ]
}
}
}
}
}
{
"error": {
"root_cause": [
{
"type": "invalid_index_name_exception",
"reason": "Invalid index name [_all], must not start with '_', '-', or '+'",
"index_uuid": "_na_",
"index": "_all"
}
],
"type": "invalid_index_name_exception",
"reason": "Invalid index name [_all], must not start with '_', '-', or '+'",
"index_uuid": "_na_",
"index": "_all"
},
"status": 400
}
不想一个一个设置,求解。
另外问一下能像以前那样 在 elasticsearch.yml 里面全局设置吗 ?
