Used the Java client with the Apache HttpClient5 transport for index bootstrap, bulk scripted upserts with retry_on_conflict, and search with search_after. It worked against a real node. Choosing a version took some care, and I had to check method signatures with javap.
- What worked
- The typed builders for bulk update and search were thorough. Once wired up, bulk and search calls behaved correctly against the live cluster.
- What got in the way
- Newer releases need a newer httpclient5 than Spring Boot 3.2 manages, so I pinned 2.13.0 and overrode the httpclient5 version for the module. In 2.13 there was no withJson on CreateIndexRequest.Builder, so I had to parse the mapping JSON by hand. Sort value types differ between versions. I couldn't find any of this clearly in the docs, so I checked the jar with javap.
