elasticsearch-grails-plugin icon indicating copy to clipboard operation
elasticsearch-grails-plugin copied to clipboard

Fix for issues with lastUpdated and dateCreated

Open felipecao opened this issue 9 years ago • 1 comments

As per the comments on https://github.com/noamt/elasticsearch-grails-plugin/issues/62 and https://github.com/grails/grails-core/issues/642, this doesn't seem to be an issue with ElasticSearch itself, seems more like an issue with DataBindingUtils on grails-core.

Anyway, I've implemented this workaround to handle Date and DateTime attributes that could not be bound by DatabindingApi. I'm not sure I've used the best approach, comments and suggestions are very welcome! :)

felipecao avatar Apr 14 '15 11:04 felipecao

It fails for the transient properties of domain, i suggest check for the persisted properties only

addmaths07 avatar Feb 05 '16 12:02 addmaths07