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

Sean Timm commented on SOLR-1811:
---------------------------------

Looking at the query sent to MySQL, I see that the time doesn't change from the 
first invocation.  Looking at the code, it looks like 
EvaluatorBag.dateMathParser.setNow(new Date()); is never called.  I fixed it 
locally.  I'll upload a patch shortly for you to look over.

> DataImportHandler: dataimporter.functions.formatDate should have a redefined 
> concept of NOW for each import
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-1811
>                 URL: https://issues.apache.org/jira/browse/SOLR-1811
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.4
>            Reporter: Sean Timm
>            Assignee: Noble Paul
>            Priority: Minor
>             Fix For: 1.5
>
>
> "The first argument can be a computed value eg: 
> '${dataimporter.functions.formatDate('NOW-3DAYS', 'yyyy-MM-dd HH:mm')}'  and 
> it uses the syntax of the datemath parser in Solr."  When using a relative 
> date with NOW, NOW is set with teh first full-import but not with subsequent 
> imports.  NOW should be redefined with each new import.

-- 
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