# Functions
NewQuery initializes a new Query object, setting up an empty query structure.
NewService initializes a new Elasticsearch service using the provided configuration.
# Constants
Timeout in milliseconds (3 seconds).
# Variables
ErrAssigningDocument represents an error when assigning a document to the result fails.
ErrAssigningDocuments represents an error when assigning multiple documents to the result fails.
ErrCheckingDocumentExists represents an error when checking if a document exists fails.
ErrCountingDocuments represents an error when counting documents fails.
ErrCreatingElasticClient represents an error when creating the Elasticsearch client fails.
ErrDecodingSearchResponse represents an error when decoding a search response into the result fails.
ErrDeletingDocument represents an error when deleting a document fails.
ErrDeletingDocuments represents an error when deleting documents by query fails.
ErrDocumentNotDeleted represents an error when a document is not found or could not be deleted in the specified index.
ErrDocumentNotFound represents an error when a document is not found in the specified index.
ErrGettingDocument represents an error when retrieving a document fails.
ErrIndexingDocument represents an error when indexing a document fails.
ErrIndexingDocuments represents an error when indexing multiple documents fails.
ErrMarshalingDocument represents an error when marshaling a document fails.
ErrMarshalingDocuments represents an error when marshaling multiple documents fails.
ErrMarshalingSource represents an error when marshaling a document source fails.
ErrNoAddresses represents an error when no addresses are provided in the configuration.
ErrOpeningCACert represents an error when there is an issue opening the CA certificate file.
ErrSearchingDocuments represents an error when a search query fails to execute.
ErrUnmarshalingDocument represents an error when unmarshaling a document into the result fails.
ErrUnmarshalingDocuments represents an error when unmarshaling multiple documents fails.
# Structs
Config represents the configuration settings for connecting to an Elasticsearch cluster.
Query wraps an Elasticsearch query object, providing methods to build complex queries.
Service represents an Elasticsearch service that manages an Elasticsearch client and provides a timeout setting for request operations.
# Interfaces
Document defines the interface for documents stored in an Elasticsearch index.