Skip to content
Advertisement

Springdata Elasticsearch Auditing LocalDateTime conversion exception

I am using Springdata elasticsearch version 4.4.3. I have configured ElasticSearch Auditing and created and Abstract Entity (Document) which is extended by every each entity.

I am getting an exception because of convertion from Java LocalDateTime in elasticseach database when I try to create a document. Here is the Abstract class with date field annotated with @Field:

JavaScript

Here is the exception stacktrace:

JavaScript

I have read something in the web and in official documentation and everything should work…

If I do not put the field annotation I can create the entity but not read it.

May you help to solve this issue?

Thanks

Advertisement

Answer

I’ve just deleted the entire index and created a new one and it works properly

Advertisement