I'm writing an indexer in Java for Elasticsearch, and I'm very afraid of pushing documents to index that doesn't have proper mapping, thus rendering it useless for my future queries.
Is there any method in official java client I can use so I can verify my create an index / put mapping requests not only landed in Elasticsearch cluster, but also were successfully applied, and cluster now is in a consistent state?
The thing I'm actually searching for is to make those requests synchronous rather than asynchronous, but I can't find anything like this in documentation (and I wonder if this is possible within Elasticsearch architecture).
The thing i'm actually searching for is to make those requests synchronous rather than asynchronous.Can you elaborate this line with respect to rest of the question?