Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Guides

Task-oriented guides for the OpenSearch Go client. Each guide is the canonical reference for its topic; cross-links point to the single source of truth rather than duplicating content.

Reading and Writing Data

  • Document Lifecycle - Create, read, update, and delete individual documents.
  • Bulk - Index, update, and delete many documents in a single request.
  • Search - Query an index and shape the results with search parameters.
  • Making Raw JSON REST Requests - Reach endpoints that have no typed method yet by sending a raw JSON body.

Managing Indices

  • Index Lifecycle - Create, configure, update, and delete indices.
  • Index Template - Apply settings, mappings, and aliases to indices matching a name pattern.
  • Advanced Index Actions - Clear cache, flush, refresh, force merge, and other maintenance actions.
  • Data Streams - Manage append-only time-series data streams.

Connections, Routing, and Discovery

Responses and Error Handling

Operations and Observability

  • Tasks - Submit long-running operations asynchronously, poll for completion, and inspect task status.
  • Client-Side Metrics - Read a point-in-time snapshot of request counters, connection-pool state, and router cache state.
  • Observer-Based Metrics - Turn per-request observer events into metrics; record them to Prometheus with the osprom module.

Configuration and Security

  • Environment Variables - The canonical reference for every OPENSEARCH_GO_* runtime variable.
  • Security - TLS, certificate verification, authentication, and related configuration.