Hi, I am new to elasticsearch.
I have document having values for employee, their department and salary. I want to apply boost factor based on department and their salary condition based i.e. salary less than 1500$ should get higher ranking. For example.
"Department" : "Technical",
"Boost": "2"
"Salary" : "<=1500",
"Boost":"1"
Expected output:
Name: ABC,
Department: Technical
Salary: 1000
Name: XYZ
Department: Technical
Salary: 1200
Name: PQR
Department: Technical
Salary: 1600
Please suggest how can I write this query in elastic.
Regards