Boosting docs based on date range

后端 未结 1 325
后悔当初
后悔当初 2021-01-28 15:24

I am to be able to filter documents based on a date, but what I really need is to boost certain date ranges higher. The following query returns results.

{
  \"q         


        
1条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-28 16:08

    Please take a look at scoring profiles in Azure Search. https://docs.microsoft.com/en-us/rest/api/searchservice/add-scoring-profiles-to-a-search-index. You can specify a freshness function on the datetime field and give a range of dates to boost matches.

    Nate

    0 讨论(0)
提交回复
热议问题