WithBody - A query to restrict the results specified with the Query DSL (optional).
(v io.Reader)
| 259 | |
| 260 | // WithBody - A query to restrict the results specified with the Query DSL (optional). |
| 261 | func (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. |
| 268 | func (f Count) WithIndex(v ...string) func(*CountRequest) { |
no outgoing calls