Skip to content

Commit f3392c9

Browse files
authored
fix instruction for terms query with roaring bitmap opensearch-project#8379 (opensearch-project#10006)
Signed-off-by: tkykenmt <[email protected]>
1 parent b1a7a75 commit f3392c9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

_query-dsl/term/terms.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ PUT /products
272272
{
273273
"mappings": {
274274
"properties": {
275-
"product_id": { "type": "keyword" }
275+
"product_id": { "type": "integer" }
276276
}
277277
}
278278
}
@@ -285,7 +285,7 @@ Next, index three documents that correspond to products:
285285
PUT /products/_doc/1
286286
{
287287
"name": "Product 1",
288-
"product_id" : "111"
288+
"product_id" : 111
289289
}
290290
```
291291
{% include copy-curl.html %}
@@ -294,7 +294,7 @@ PUT /products/_doc/1
294294
PUT /products/_doc/2
295295
{
296296
"name": "Product 2",
297-
"product_id" : "222"
297+
"product_id" : 222
298298
}
299299
```
300300
{% include copy-curl.html %}
@@ -303,7 +303,7 @@ PUT /products/_doc/2
303303
PUT /products/_doc/3
304304
{
305305
"name": "Product 3",
306-
"product_id" : "333"
306+
"product_id" : 333
307307
}
308308
```
309309
{% include copy-curl.html %}
@@ -382,7 +382,9 @@ POST /products/_search
382382
{
383383
"query": {
384384
"terms": {
385-
"product_id": "OjAAAAEAAAAAAAIAEAAAAG8A3gBNAQ==",
385+
"product_id": [
386+
"OjAAAAEAAAAAAAIAEAAAAG8A3gBNAQ=="
387+
],
386388
"value_type": "bitmap"
387389
}
388390
}

0 commit comments

Comments
 (0)