The current default boost function
(`recip(ms(NOW,last_modified),3.16e-11,1,1)`) for the Date ranking
profile is indeed working fine.
What can trigger the error `unexpected docvalues type NUMERIC for field
'last_modified'` is the previous default boost function (quite old now)
or any custom one using the Solr `ord` or `rord` functions on the
last_modified field.
Then the problem was that the migration code in the Switchboard supposed
to detect the old date boost function was incorrect (one trailing right
parenthesis in excess), so the deprecated function remained.
This fixes issue #169.
if(bf.equals("recip(rord(last_modified),1,1000,1000))"))bf="recip(ms(NOW,last_modified),3.16e-11,1,1)";// that was an outdated date boost that did not work well
if(bf.equals("recip(rord(last_modified),1,1000,1000)"))bf="recip(ms(NOW,last_modified),3.16e-11,1,1)";// that was an outdated date boost that did not work well