Hello, when creating an index I specifically created a custom analyzer which should be used for indexing and searching (see the example code below)
"settings": {
"analysis": {
"analyzer": {
"custom_name_analyzer": {
"type": "custom",
"tokenizer": "keyword",
"filter": [
"lowercase",
"asciifolding",
"word_delimiter"
]
}
}
}
}
It is used for a name field in a document like this:
"mappings": {
"dynamic": "false",
"properties": {
"name": {
"properties": {
"cs": { "type": "text",
"analyzer": "custom_name_analyzer",
"search_analyzer": "custom_name_analyzer"
}
}
}
However, when I do GET <index-name>/_mapping
, I do not see the search_analyzer
being provided.
What is the reason for it?
How can I determine which analyzer is used for searching in this case?