Hi All
I'm facing a problem with my elastic search for Magento 2 (Wyomind)
In general, it seems the danish special characters Æ, Ø and Å are translated to:
Æ: A /Ae
Ø: O
Å: A
This causes the search not to show the exact products.
E.g.
- If i Search for "Nål" It will find "anal" (analytic) because of 'nal' is seen as the same as "nål" becuase of Å == A.
- If i search for "åle" it will return "male" (because of ale)
In general - elastic should only find exact matches - and not read the special chars as regular chars.
Hope you guys can help me out.
Here are the setup of my elastic search.
{
"number_of_shards": 1,
"number_of_replicas": 0,
"analysis": {
"analyzer": {
"std": {
"tokenizer": "standard",
"char_filter": "html_strip",
"filter": ["standard", "elision", "asciifolding", "lowercase", "length"]
},
"keyword": {
"tokenizer": "keyword",
"filter": ["asciifolding", "lowercase"]
},
"keyword_prefix": {
"tokenizer": "keyword",
"filter": ["asciifolding", "lowercase", "edge_ngram_front"]
},
"text_prefix": {
"tokenizer": "standard",
"char_filter": "html_strip",
"filter": ["standard", "elision", "asciifolding", "lowercase", "edge_ngram_front"]
},
"text_suffix": {
"tokenizer": "standard",
"char_filter": "html_strip",
"filter": ["standard", "elision", "asciifolding", "lowercase", "edge_ngram_back"]
}
},
"filter": {
"edge_ngram_front": {
"type": "edgeNGram",
"min_gram": 2,
"max_gram": 10,
"side": "front"
},
"edge_ngram_back": {
"type": "edgeNGram",
"min_gram": 2,
"max_gram": 10,
"side": "back"
},
"length": {
"type": "length",
"min": 1
}
}
}
}