Given the following query, how do I rank each should clause higher than another one.
I'm trying to boost them in the order that they're listed.
{ "size": 20, "query": { "bool": { "should": [ { "match_phrase": { "fullName": "Michael Douglas" } }, { "match_phrase_prefix": { "fullName": "Michael Douglas" } }, { "match": { "lastName": "Michael Douglas" } }, { "match": { "firstName": "Michael Douglas" } }, { "fuzzy_like_this": { "like_text": "Michael Douglas" } } ] } } }
How do I boost each clause within the should array? This is what I can't wrap my head around.