92c6c7d99a
- Updated error handling in the Elasticsearch client to utilize a new `readErrorBody` function for better diagnostics when pinging and searching. - Refactored the `flushBatch` method to marshal bulk index actions using a dedicated `marshalBulkIndexAction` function, improving code clarity and error handling. - Enhanced the overall structure of the Elasticsearch client for improved maintainability and readability. This update enhances the robustness of the Elasticsearch client, ensuring more informative error messages and cleaner code organization.