: Try solr.TrieDateField instead
and note the docs on the "ms" function, from the same wiki page you linked
to...
>> Arguments may be numerically indexed date fields such as TrieDate
>> (recommended field type for dates since Solr 1.4), or date math
>> (examples in SolrQuerySyntax) based on a
"true"/>
> ="true"/>
>
> However, upon trying to do ms(NOW, created_at) it shows the error
> Can't use ms() function on non-numeric legacy date field created_at
> *
> *
> *Pranav Prakash*
>
> "temet nosce"
>
>
Hi, I had been trying to boost my recent documents, using what is described
here http://wiki.apache.org/solr/FunctionQuery#Date_Boosting
My date field looks like
However, upon trying to do ms(NOW, created_at) it shows the error
Can't use ms() function on non-numeric legacy date