Если я ищу токены с номерами, fuzzines не работает правильно.
Dokument:
"Nice Photo S61"
Дает мне результат по запросу
"Nices"
Но не так скоро я бы использовал
"S6"
У меня нет результата
Вот мой запрос
GET /index1/_search
{
"query": {
"match" : {
"url1" : {
"query" : "s6",
"fuzziness": "auto",
"prefix_length": "3",
"max_expansions": 6,
"operator": "and"
}
}
}
}
Вот мои настройки индекса:
PUT /index1/_settings
{
"settings": {
"analysis": {
"analyzer": {
"product_analyzer": {
"type": "custom",
"tokenizer": "punctuation",
"filter": [
"lowercase"
]
}
},
"tokenizer": {
"punctuation": {
"type": "pattern",
"pattern": "[-_.:~ ]"
}
}
}
},
"mappings" : {
"index1" : {
"properties" : {
"url":{
"type" :"text",
"analyzer" : "product_analyzer"
}
}
}
}
}