You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `wrapper` query lets you submit a complete query in Base64-encoded JSON format. It is useful when the query must be embedded in contexts that only support string values.
12
+
13
+
Use this query only when you need to manage system constraints. For readability and maintainability, it's better to use standard JSON-based queries when possible.
14
+
15
+
## Example
16
+
17
+
Create an index named `products` with the following mappings:
18
+
19
+
```json
20
+
PUT /products
21
+
{
22
+
"mappings": {
23
+
"properties": {
24
+
"title": { "type": "text" }
25
+
}
26
+
}
27
+
}
28
+
```
29
+
{% include copy-curl.html %}
30
+
31
+
Index sample documents:
32
+
33
+
```json
34
+
POST /products/_bulk
35
+
{ "index": { "_id": 1 } }
36
+
{ "title": "Wireless headphones with noise cancellation" }
0 commit comments