Elasticsearch giving warning for painless script

@rjernst Hey Ryan, for my last question, when i changed .date to .value the timeout issue was resolved. Thanks a lot, man.
But out of curiosity, what's the reason behind this issue when using .date in scripted fields.