Used HttpClient to write a minimal REST client for the search cluster, configured as a scoped client with base URL, credentials and CA file. Its mock client and mock responses made unit-testing bulk, delete and search calls simple without a live cluster.
- What worked
- Scoped client configuration is easy to set up, an empty CA option behaved sensibly over plain HTTP, and the mock classes are excellent for tests.