Hi Team,
Need help Urgent !
I'm trying to add 800 synonym via synonym.txt file in elasticsearch. file got uploaded to server but results are not getting fetched. PFB for the seetings and mapping
PUT synonym_sample_update
{
"mappings" : {
"properties" : {
"synonym_field" : {
"type" : "text",
"analyzer" : "whitespace",
"search_analyzer" : "synonym_analyzer"
}
}
},
"settings" : {
"analysis" : {
"filter" : {
"synonym" : {
"expand" : true,
"type" : "synonym",
"synonyms" : [
"1,One"
],
"updateable": true
},
"synonymfile":{
"expand" : true,
"type" : "synonym",
"ignore_case": true,
"synonyms_path": "analysis/synonym.txt",
"updateable": true
}
},
"analyzer" : {
"synonym_analyzer" : {
"filter" : [
"lowercase",
"synonym",
"synonymfile"
],
"type" : "custom",
"tokenizer" : "whitespace"
}
}
}
}
}