-
Notifications
You must be signed in to change notification settings - Fork 260
Cannot create index with mappings settings #297
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
In earlier versions, there was a clean api with which to load JSON mappings. It's gone and, post 7, no documentation. Surely there is a way to load JSON mappings in recent versions. |
Hi, I have same problem. https://www.elastic.co/guide/en/elasticsearch/reference/8.2/mapping-settings-limit.html So, this line should be change like this.
Could you change this? |
This is an issue in the API specification used to produce the Java code: The fix will be included in the next 8.x and 7.17.x releases. |
There is indeed a way to load JSON mappings. It's not limited to mappings actually, and can be used with API object. Please see explanation and examples at https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/loading-json.html |
Closing, as the same issue has been reported in #295 |
Java API client version
8.2.2
Java version
8
Elasticsearch Version
8.2.2
Problem description
The following code is expected to trigger an index creation in the target server. Instead, the error response below is received
Response:
The text was updated successfully, but these errors were encountered: