SOLR - Boost function (bf) to increase score of documents whose date is closest to NOW

后端 未结 2 1947
一向
一向 2021-02-02 02:16

I have a solr instance containing documents which have a \'startTime\' field ranging from last month to a year from now. I\'d like to add a boost query/function to boost the sco

2条回答
  •  渐次进展
    2021-02-02 02:49

    You can do date math in Solr 1.4.

    http://wiki.apache.org/solr/FunctionQuery#Date_Boosting

提交回复
热议问题