Skip to content

spring data elasticsearch can't deserialize "single or array" object field #2280

Closed
@puppylpg

Description

@puppylpg

The problem is posted here at first time.

Here is the repo i created by spring boot to reproduce it:

  1. start a elasticsearch of version 7.12, maybe with docker - docker run --name es01-test --net elastic -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -e ES_JAVA_OPTS="-Xms1024m -Xmx1024m" docker.elastic.co/elasticsearch/elasticsearch:7.12.1;
  2. see resources/insert.txt: add 4 docs manually;
  3. just click and run the project(or through maven: mvn clean spring-boot:run);

Errors will be logged into logs/log.

I'll also try to sovle it(if free this weekend, not guaranteed :D)

Thanks for your efforts.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions