Hi all!
I need to search my products by codes like this one: "50-14Lx". I use word_delimiter to tokenize "50-14Lx" to "50","14","Lx". But it doesn't work on my index.
Index:
PUT /products
{
"settings": {
"analysis": {
"analyzer": {
"my_analyzer": {
"tokenizer": "whitespace",
"filter": [ "word_delimiter" ]
}
}
}
}
}
Analyze:
GET /_analyze
{
"tokenizer": "whitespace",
"filter": [ "word_delimiter_graph" ],
"text": "50-14Lx"
}
It's OK, as expected returns: "50", "14", "Lx"
But my index returns "wrong" results "50", "14Lx":
GET /products/_analyze
{
"explain": true,
"text": "50-14Lx"
}
Question: why "14Lx" was not split inside my index ?