# Functions
BuildFilter is the main entry used by integrators, producing a slice of BoolFilter.
BuildFilterWithDefaultFieldName optionally falls back to the user’s field name.
CheckError reads an opensearchapi.Response and tries to decode an error.
CheckErrorWithContext logs error details and returns an error if found.
CloseSafe reads & closes the response body to avoid leaks.
No description provided by the author
No description provided by the author
DeleteByQuery ...
ESCheckError does the same for the esapi.Response type.
ESCloseSafe does the same for go-elasticsearch/v7 esapi.Response.
No description provided by the author
IsIndexAlreadyExistsErr checks if error says index is already created.
IsIndexNotFoundErr checks if error is index_not_found_exception.
LogWarn logs a warning either via plugin.Logger() or fmt.Println if none.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
BoolShouldFilter ...
No description provided by the author
No description provided by the author
No description provided by the author
DeleteByQueryResponse ...
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RangeFilter ...
No description provided by the author
No description provided by the author
No description provided by the author
TermFilter: we do type inference with new logic around leading zeros, date/time parse, etc.
TermsFilter remains the same.
No description provided by the author
# Interfaces
BoolFilter is an interface for all filters (TermFilter, RangeFilter, etc.).