elasticsearch-grails-plugin
elasticsearch-grails-plugin copied to clipboard
Fix for issues with lastUpdated and dateCreated
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! :)
It fails for the transient properties of domain, i suggest check for the persisted properties only