MCPcopy
hub / github.com/elastic/go-elasticsearch / WithIgnoreUnavailable

Method WithIgnoreUnavailable

esapi/api.count.go:324–328  ·  view source on GitHub ↗

WithIgnoreUnavailable - whether specified concrete indices should be ignored when unavailable (missing or closed).

(v bool)

Source from the content-addressed store, hash-verified

322
323// WithIgnoreUnavailable - whether specified concrete indices should be ignored when unavailable (missing or closed).
324func (f Count) WithIgnoreUnavailable(v bool) func(*CountRequest) {
325 return func(r *CountRequest) {
326 r.IgnoreUnavailable = &v
327 }
328}
329
330// WithLenient - specify whether format-based query failures (such as providing text to a numeric field) should be ignored.
331func (f Count) WithLenient(v bool) func(*CountRequest) {

Callers 5

mainFunction · 0.45
setupMethod · 0.45
TestAPIFunction · 0.45

Calls

no outgoing calls

Tested by 3

TestAPIFunction · 0.36