The setting for wordnet synonym
PUT /individualvideos
{
"settings": {
"analysis":{
"analyzer":{
"synonyms":{
"filter":[
"lowercase",
"synonym_filter"
],
"tokenizer": "standard"
}
},
"filter": {
"synonym_filter": {
"type": "synonym",
"format" : "wordnet",
"synonyms_path" : "analysis/wn_s.pl"
}
}
}
}
}
Query:
GET allvideos/_search
{
"query": {
"match": {
"description": {
"query": "tell me about relationship",
"analyzer": "synonyms"
}
}
}
}
PUT /individualvideos
{
"settings": {
"analysis":{
"analyzer":{
"synonyms":{
"filter":[
"lowercase",
"synonym_filter"
],
"tokenizer": "standard"
}
},
"filter": {
"synonym_filter": {
"type": "synonym",
"format" : "wordnet",
"synonyms_path" : "analysis/wn_s.pl"
}
}
}
}
}
Query:
GET allvideos/_search
{
"query": {
"match": {
"description": {
"query": "tell me about relationship",
"analyzer": "synonyms"
}
}
}
}
Comments
Post a Comment