In my Spring Boot application I have a @Setting annotation pointing to a settings JSON file but it seems to be completely ignored.
@Setting(settingPath = \"
Your elasticsearch-settings.json
file is missing the index
element. Try like this instead:
{
"index": {
"analysis": {
"analyzer": {
"my_ngram_analyzer": {
"tokenizer": "my_ngram_tokenizer"
}
},
"tokenizer": {
"my_ngram_tokenizer": {
"type": "nGram",
"min_gram": "2",
"max_gram": "3",
"token_chars": [
"letter",
"digit"
]
}
}
}
}
}