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

Method WithBody

esapi/api.count.go:261–265  ·  view source on GitHub ↗

WithBody - A query to restrict the results specified with the Query DSL (optional).

(v io.Reader)

Source from the content-addressed store, hash-verified

259
260// WithBody - A query to restrict the results specified with the Query DSL (optional).
261func (f Count) WithBody(v io.Reader) func(*CountRequest) {
262 return func(r *CountRequest) {
263 r.Body = v
264 }
265}
266
267// WithIndex - a list of indices to restrict the results.
268func (f Count) WithIndex(v ...string) func(*CountRequest) {

Callers 15

TestContentTypeOverrideFunction · 0.45
TestInstrumentationFunction · 0.45
BenchmarkClientAPIFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
CreateIndexMethod · 0.45
SearchMethod · 0.45
mainFunction · 0.45
runFunction · 0.45
mainFunction · 0.45
setupMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by 6

TestContentTypeOverrideFunction · 0.36
TestInstrumentationFunction · 0.36
BenchmarkClientAPIFunction · 0.36
BenchmarkAPIFunction · 0.36