I'm trying to update a mapping via the Java API. The code appears to
work, however, when I get the mapping it hasn't changed.
Here is what my code looks like:
IndicesAdminClient admin = client.admin().indices(); PutMappingRequest putRequest = new PutMappingRequest(INDEX_NAME); putRequest.source(mapping()); putRequest.type("_default_"); putRequest.ignoreConflicts(true); PutMappingResponse response =
Note that the funciton "mapping()" returns my mapping as an
XContentBuilder object, including the new fields and other changes I
am trying to make.
This code runs and prints the success message, but when I query the
mapping from the command line, I get the old mapping. What am I doing