We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e49c1f commit ca5fb00Copy full SHA for ca5fb00
docs/examples.asciidoc
@@ -10,6 +10,7 @@ the Ruby client.
10
* <<ex-delete>>
11
* <<ex-bulk>>
12
* <<ex-search>>
13
+* <<ex-multisearch>>
14
* <<ex-scroll>>
15
* <<ex-reindex>>
16
@@ -177,6 +178,20 @@ response['hits']['hits'].count # => 15
177
178
```
179
180
181
+[discrete]
182
+[[ex-multisearch]]
183
+=== Multi search
184
+The following example shows how to perform a multisearch API call on `books` index:
185
+```ruby
186
+body = [
187
+ {},
188
+ {query: {range: {page_count: {gte: 100}}}},
189
190
+ {query: {range: {page_count: {lte: 100}}}}
191
+]
192
+client.msearch(index:'books', body: body)
193
+```
194
+
195
[discrete]
196
[[ex-scroll]]
197
=== Scrolling
0 commit comments