lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Can't use ms() function on non-numeric legacy date field
Date Tue, 27 Sep 2011 16:18:56 GMT

: Try solr.TrieDateField instead

and note the docs on the "ms" function, from the same wiki page you linked 

>> 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 constant date or NOW.
>> Things other than these will _not_ work as arguments. For example, you 
>> cannot currently use:
>>  * "classic", non-numerically indexed date fields (i.e. fields backed 
>>     by DateField or LegacyDateField classes) 
>>  * other functions (e.g. map, sum, etc.) 


View raw message