[ 
https://issues.apache.org/jira/browse/SOLR-1368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744578#action_12744578
 ] 

Yonik Seeley commented on SOLR-1368:
------------------------------------

Floats sometimes don't have sufficient precision for subtracting dates:
http://search.lucidimagination.com/search/document/be9fcf5bbc8fd574/date_functions_and_floats

An ms() function both provides a way to introduce date constants, as well as 
subtract them.

examples:
ms(NOW)  a constant
ms(2009-12-14T01:01:01Z)   a constant
ms(field)  a date field (needs to be a trie-date variant that has milliseconds 
available)
ms(field1,field2)  difference in milliseconds
ms(NOW/SECOND,field1)  difference in milliseconds


> ms() function for date math
> ---------------------------
>
>                 Key: SOLR-1368
>                 URL: https://issues.apache.org/jira/browse/SOLR-1368
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: 1.4
>
>
> ms (milliseconds) function to use dates in function queries

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to