I believe you can use a function query to do this: http://wiki.apache.org/solr/FunctionQuery
if you embed the following in your query, you should get a boost for more recent date values: _val_:"ord(dateField)" Where "dateField" is the field name of the date you want to use. > -----Original Message----- > From: Bertrand DUMAS-PILHOU [mailto:bdum...@eurocortex.fr] > Sent: Thursday, April 23, 2009 3:44 PM > To: solr-user@lucene.apache.org > Subject: modify SOLR scoring > > > Hi everybody, > > I'm using SOLR with a schema (for example) like this: > parutiondate, date, indexed, not stored > fulltext, stemmed, indexed, not stored > > I know it's possible to order by a field or more, but I want to order > by > score and modify the "scrore"" formula. > I'll want keep the SOLR score but add a new parameter in the formula to > boost the score of the most recent document. > > What is the best way to do this ? > > Thanks. > > Excuse for my english. > > > -- > View this message in context: http://www.nabble.com/modify-SOLR- > scoring-tp23198326p23198326.html > Sent from the Solr - User mailing list archive at Nabble.com.