File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff 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:
285285PUT /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
294294PUT /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
303303PUT /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 }
You can’t perform that action at this time.
0 commit comments