Maybe my memory is foggy but I thought that the 'reload_search_analyzers'-command only reloads the synonyms file (when the 'updateable'-field is set to true) and not other files (like stop_words and stemmer_override).
We also have a stemmer_override file and today after I applied 'reload_search_analyzers' I noticed that new overrides are now applied at search time.
I did the following. Updated the stemmer_override file with "dummydummy => dummy" and then did the following:
GET product/_analyze
{
"analyzer": "full_text_search_analyzer",
"text": "dummydummy",
"explain": true
}
{
"name" : "custom_stems",
"tokens" : [
{
"token" : "dummydummy",
"start_offset" : 0,
"end_offset" : 10,
"type" : "word",
"position" : 0,
"bytes" : "[64 75 6d 6d 79 64 75 6d 6d 79]",
"keyword" : false,
"positionLength" : 1,
"termFrequency" : 1
}
]
}
after POST product/_reload_search_analyzers {} I get this:
{
"name" : "custom_stems",
"tokens" : [
{
"token" : "dummy",
"start_offset" : 0,
"end_offset" : 10,
"type" : "word",
"position" : 0,
"bytes" : "[64 75 6d 6d 79]",
"keyword" : true,
"positionLength" : 1,
"termFrequency" : 1
}
]
}
Reload search analyzers API | Elasticsearch Reference [7.10] | Elastic mentions only the synonyms file.
Am I remember incorrectly, or did I find a bug?
We are on Elasticsearch version 7.9.0.