Synonyms with digits


(Gili Sade) #1

Hi There
using ES 5.5
this is the section in my template
"analysis": {
"filter": {
"synonym": {
"type": "synonym",
"synonyms_path": "analysis/synonym.txt",
"tokenizer": "lowercase"
}
},
"analyzer": {
"ngraman": {
"filter": [
"lowercase",
"synonym"
],
"type": "custom",
"tokenizer": "ngram_tokenizer"
},
"search_standard": {
"filter": [
"lowercase",
"synonym"
],
"type": "custom",
"tokenizer": "search_tokenizer"
}
},
"tokenizer": {
"ngram_tokenizer": {
"token_chars": [
"letter",
"digit",
"punctuation"
],
"min_gram": "3",
"type": "edge_ngram",
"max_gram": "17"
},
"search_tokenizer": {
"token_chars": [
"letter",
"digit",
"punctuation"
],
"type": "whitespace"
}
}
}

this is my synonyms file:

tech => technology
resistor => resistore
capacitor => capacitore , capecitore
capacitor => TEST
TI => Texas instrume
a2c => adc

all of the synonyms work besides this one:
a2c => adc

is there a reason ? digits dont work?


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.