-
Notifications
You must be signed in to change notification settings - Fork 261
Error deserializing co.elastic.clients.elastic search._types.mapping.SourceField: Unknown field #428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello, thank you for the report! It's not really clear to me what you're trying to do, I'm going to assume you want to add a mapping for the
Ideally one should be able to write almost every request just by leveraging the methods of the java client, and only use json for very specific cases the java client doesn't yet support. Still not sure this was the problem though, so let me know :) |
The same issue with 'normalizer'
|
Please ALWAYS provide example code! @l-trotta As i worked on my Master-thesis these days, i wanted to try ALL WAYS how to interact with elasticsearch. Thus i tried "not common" ways. @yazabara My master-thesis contains a section where 4 alternatives to communicate with Elasticsearch are shown by code and explained. This is section 5.6 with the title "Ein Schema hinzufügen". I will paste my master-thesis into this post. You can translate my explanation-texts of my master-thesis with chatGPT into your favorite language. 2022.11.29_Masterarbeit_Vereinheitlichung_und_Zentralisierung_von_Schnittstellenlogdateien.pdf EDIT: And if you want to know how to get a connection to Elasticsearch then view the other prior sections. Thanks - Enomine |
I've just added annotation param 'normalizer' org.springframework.boot:3.0.2. ('org.springframework.boot:spring-boot-starter-data-elasticsearch') The document definition is:
To create an index I'm using special method (because of blue/green strategy implementation)
Without |
@Enomine88 thank you so much for your interest in Elasticsearch, if you have any other question feel free to reopen this issue or create a new one (we promise we'll be faster this time!) @yazabara unfortunately we cannot help you with that particular issue, since you're using spring data elasticsearch and not the java client directly, I suggest you open an issue on their repository if the problem persists. |
Java API client version
Java version
1.8.17
Elasticsearch Version
IDK - the current Elasticsearch Cloud Version hosted by Elastic itself
Problem description
Trying to add a schema (index mapping) to an index.
Code:
Gives:
I am not so much into this all that i could prove it is an issue / bug but i really can't help myself. Can't see what i am doing wrong.
Could be related to #392 and #361 but i don't know.
Any suggestions how to generate JSON by Java Code (not typing JSON into the Code nor in a textfile) and bring that JSON to an execution in the ElasticsearchClient? Please give any hint what could be a smart way to do so. Is there an alternative to XContentBuilder?
Thanks - Enomine
The text was updated successfully, but these errors were encountered: