In elaticsearch7.x either of these queries are not working please correct me where i'm wrong.
i want a search which is boosted with field and specific word in a query.
query = ("winter foxˆ2" OR "summer ice")
query = ("winter fox"ˆ2 OR "summer ice")
"query" : {
"bool" : {
"must" :[
{
"query_string" : {
"query" : query,
"fields" : ["field1^4", "field2^3",'field4^2','field3^2'],
"quote_field_suffix": ".keyword",
"default_operator": "OR",
"type":"most_fields",
"tie_breaker":1,
"auto_generate_synonyms_phrase_query" : True,
"phrase_slop" : 2
}
}
],
},
}