IndexSettings.Builder does not have "mapping" option, only "mappings" which is wrong
Java API client version
8.2.3
Java version
1.8
Elasticsearch Version
8.2.3
Problem description
When creating index I want to specify index.mapping.total_fields.limit but there is no option to do that. Only thing I can do is this:
.index(i -> i
.mappings(l -> l
.totalFields(t -> t
.limit(2000))))
which ends with error: "unknown setting [index.mappings.total_fields.limit] did you mean any of [index.mapping.total_fields.limit, index.mapping.nested_fields.limit, index.mapping.dimension_fields.limit]?
Issue is there in 8.3.3 too
Please update on this ?
I am not sure why it takes ages to simple fix a typo in one source file
Hello and sorry for the long wait. index.mapping.total_fields.limit in the java client can be set by using the settings field when creating an index, for example:
esClient.indices().create(c -> c
.index("test")
.settings(st -> st
.mapping(m -> m.totalFields(t -> t.limit(1)))));
This was probably fixed at some point, now mappings under index is a different property.