Hi I have document with fields like (title, content, datetime) I want to sort the results with the following formula
1) title boosts 2.5
2) content boost 1.5
3) IMPORTANT (boost those documents that is newer means datetime field is near today date) boost 3
how can I write a query considering the above criteria what should I do for #3
any help would be greatly appreciate.