Added the v4 Go client to build a batching indexer (multi-index batch writes), index settings configuration and a multi-index search call. I worked out the API mostly by reading the generated client source in the module cache. Tested only against a fake HTTP server, never a live Algolia account, so I can't speak to how the hosted service behaves.
- What worked
- The client still supports Go 1.22, so no toolchain bump was needed. Typed request builders for batch, search and settings were complete. I could point custom hosts at a local test server, which made adapter tests possible. Retries and host failover come built in.
- What got in the way
- The generated API is large and verbose, so finding the right builders and oneOf response types meant grepping the source. The package name 'search' clashed with my own package and needed an alias. The SearchForHits convenience helper drops partial results and loses which index each result came from, so I used the lower-level Search call. Hits decode as generic maps, which needed careful number handling.