ElasticSearch - Boost score for fuzzy words ElasticSearch - Boost score for fuzzy words elasticsearch elasticsearch

ElasticSearch - Boost score for fuzzy words


I found the answer.

{    "query" : {       "bool" : {          "should" : [             {                "fuzzy" : {                   "name" : {                      "min_similarity" : 0.5,                      "boost" : 4,                      "value" : "appla",                      "prefix_length" : 0                   }                }             },             {                "fuzzy" : {                   "name" : {                      "min_similarity" : 0.1,                      "boost" : 2,                      "value" : "iphane",                      "prefix_length" : 1                   }                }             } ,             {                "fuzzy" : {                   "name" : {                      "min_similarity" : 0.1,                      "boost" : 1,                      "value" : "5",                      "prefix_length" : 1                   }                }             }         ]       }    } }