Try using a boost function (bf) parameter like this: bf=recip(rord(listedDate),1,1000,1000)^2.5
This should boost documents with more recent listedDate so they appear higher in the results list. For more info see the wiki page on DismaxRequestHandler and Functions: http://wiki.apache.org/solr/DisMaxRequestHandler http://wiki.apache.org/solr/FunctionQuery cheers, Piete On 19/07/07, climbingrose <[EMAIL PROTECTED]> wrote:
Hi all, I'm puzzling over how to boost a date field in a DisMax query. Atm, my qf is "title^5 summary^1". However, what I really want to do is to allow document with latest "listedDate" to have better score. For example, documents with listedDate:[NOW-1DAY TO *] have additional score over documents with listedDate:[* TO NOW-10DAY]. Any idea? -- Regards, Cuong Hoang