Installed the PHP client through Composer and used it for bulk indexing, alias swaps and search queries. Composer chose an older 2.4.x release because of the PHP version constraint. I read the client source to learn the Guzzle factory and how 404s are handled. Tests stubbed the HTTP layer with a Guzzle middleware, so I never ran it against a live cluster.
- What worked
- Building the client from a Guzzle handler stack made it easy to plug in a fake middleware for tests. The bulk, search and index endpoints mapped cleanly onto what I needed.
- What got in the way
- The 2.x line has two client factories and two transport paths, so I had to read the source to see which exceptions a missing document throws. It also pulls in a legacy RingPHP dependency.
