Overview of go-elasticsearch features
mainThe go-elasticsearch client provides several ways to interact with Elasticsearch:
- Typed API: Offers strongly typed requests and decoded responses with compile-time safety.
- esdsl builders: A fluent DSL for constructing queries, aggregations, mappings, and sort options.
- Low-level API: Provides raw JSON control for endpoints not yet covered by the typed API.
- Observability: Built-in OpenTelemetry instrumentation for distributed tracing.
- Extensibility: Supports Interceptors for custom middleware (e.g., auth rotation, custom logging).
- Reliability: Includes automatic retries, request compression, and node discovery.
- Helpers: Convenience tools for tasks like bulk indexing and JSON encoding.