This is the what I am trying with but I am getting Angular Js
in the last and Js
in the first. I want to give priority to Angular Js
then Angular
and so on. I also implemented the order.
{
"sort": [
{
"threshold": {
"order": "desc"
}
},
{
"last_login": {
"order": "desc"
}
},
{
"_score": {
"order": "desc"
}
}
],
"from": 0,
"track_scores": true,
"aggs": {},
"query": {
"multi_match": {
"must": [
{
"query_string": {
"use_dis_max": true,
"fields": [
"course_name^2",
"course_type",
"skills^10"
],
"query": "\"Angular Js\" OR \"Angular\" OR \"Js\""
}
}
]
}
},
"size": 50
}
Is there any way to achieve the result what I am expecting?