@@ -47,18 +47,22 @@ setup:
47
47
type : unsigned_long
48
48
index : true
49
49
doc_values : true
50
+ boolean :
51
+ type : boolean
52
+ index : true
53
+ doc_values : true
50
54
51
55
- do :
52
56
bulk :
53
57
index : test-iodvq
54
58
refresh : true
55
59
body :
56
60
- ' {"index": {"_index": "test-iodvq", "_id": "1" }}'
57
- - ' { "some_keyword": "ingesting some random keyword data", "byte": 120, "double": 100.0, "float": "800.0", "half_float": "400.0", "integer": 1290, "long": 13456, "short": 150, "unsigned_long": 10223372036854775800 }'
61
+ - ' { "some_keyword": "ingesting some random keyword data", "byte": 120, "double": 100.0, "float": "800.0", "half_float": "400.0", "integer": 1290, "long": 13456, "short": 150, "unsigned_long": 10223372036854775800, "boolean": true }'
58
62
- ' { "index": { "_index": "test-iodvq", "_id": "2" }}'
59
- - ' { "some_keyword": "400", "byte": 121, "double": 101.0, "float": "801.0", "half_float": "401.0", "integer": 1291, "long": 13457, "short": 151, "unsigned_long": 10223372036854775801 }'
63
+ - ' { "some_keyword": "400", "byte": 121, "double": 101.0, "float": "801.0", "half_float": "401.0", "integer": 1291, "long": 13457, "short": 151, "unsigned_long": 10223372036854775801, "boolean": true }'
60
64
- ' { "index": { "_index": "test-iodvq", "_id": "3" } }'
61
- - ' { "some_keyword": "5", "byte": 122, "double": 102.0, "float": "802.0", "half_float": "402.0", "integer": 1292, "long": 13458, "short": 152, "unsigned_long": 10223372036854775802 }'
65
+ - ' { "some_keyword": "5", "byte": 122, "double": 102.0, "float": "802.0", "half_float": "402.0", "integer": 1292, "long": 13458, "short": 152, "unsigned_long": 10223372036854775802, "boolean": false }'
62
66
63
67
- do :
64
68
search :
@@ -175,6 +179,17 @@ setup:
175
179
- match : { hits.total: 1 }
176
180
177
181
182
+ - do :
183
+ search :
184
+ rest_total_hits_as_int : true
185
+ index : test-iodvq
186
+ body :
187
+ query :
188
+ term :
189
+ boolean : true
190
+
191
+ - match : { hits.total: 2 }
192
+
178
193
- do :
179
194
search :
180
195
rest_total_hits_as_int : true
@@ -428,18 +443,22 @@ setup:
428
443
type : unsigned_long
429
444
index : true
430
445
doc_values : false
446
+ boolean :
447
+ type : boolean
448
+ index : true
449
+ doc_values : false
431
450
432
451
- do :
433
452
bulk :
434
453
index : test-index
435
454
refresh : true
436
455
body :
437
456
- ' {"index": {"_index": "test-index", "_id": "1" }}'
438
- - ' { "some_keyword": "ingesting some random keyword data", "byte": 120, "double": 100.0, "float": "800.0", "half_float": "400.0", "integer": 1290, "long": 13456, "short": 150, "unsigned_long": 10223372036854775800 }'
457
+ - ' { "some_keyword": "ingesting some random keyword data", "byte": 120, "double": 100.0, "float": "800.0", "half_float": "400.0", "integer": 1290, "long": 13456, "short": 150, "unsigned_long": 10223372036854775800, "boolean": true }'
439
458
- ' { "index": { "_index": "test-index", "_id": "2" }}'
440
- - ' { "some_keyword": "400", "byte": 121, "double": 101.0, "float": "801.0", "half_float": "401.0", "integer": 1291, "long": 13457, "short": 151, "unsigned_long": 10223372036854775801 }'
459
+ - ' { "some_keyword": "400", "byte": 121, "double": 101.0, "float": "801.0", "half_float": "401.0", "integer": 1291, "long": 13457, "short": 151, "unsigned_long": 10223372036854775801, "boolean": true }'
441
460
- ' { "index": { "_index": "test-index", "_id": "3" } }'
442
- - ' { "some_keyword": "5", "byte": 122, "double": 102.0, "float": "802.0", "half_float": "402.0", "integer": 1292, "long": 13458, "short": 152, "unsigned_long": 10223372036854775802 }'
461
+ - ' { "some_keyword": "5", "byte": 122, "double": 102.0, "float": "802.0", "half_float": "402.0", "integer": 1292, "long": 13458, "short": 152, "unsigned_long": 10223372036854775802, "boolean": false }'
443
462
444
463
- do :
445
464
search :
@@ -555,6 +574,17 @@ setup:
555
574
556
575
- match : { hits.total: 1 }
557
576
577
+ - do :
578
+ search :
579
+ rest_total_hits_as_int : true
580
+ index : test-index
581
+ body :
582
+ query :
583
+ term :
584
+ boolean : true
585
+
586
+ - match : { hits.total: 2 }
587
+
558
588
559
589
- do :
560
590
search :
@@ -809,18 +839,22 @@ setup:
809
839
type : unsigned_long
810
840
index : false
811
841
doc_values : true
842
+ boolean :
843
+ type : boolean
844
+ index : false
845
+ doc_values : true
812
846
813
847
- do :
814
848
bulk :
815
849
index : test-doc-values
816
850
refresh : true
817
851
body :
818
852
- ' {"index": {"_index": "test-doc-values", "_id": "1" }}'
819
- - ' { "some_keyword": "ingesting some random keyword data", "byte": 120, "double": 100.0, "float": "800.0", "half_float": "400.0", "integer": 1290, "long": 13456, "short": 150, "unsigned_long": 10223372036854775800 }'
853
+ - ' { "some_keyword": "ingesting some random keyword data", "byte": 120, "double": 100.0, "float": "800.0", "half_float": "400.0", "integer": 1290, "long": 13456, "short": 150, "unsigned_long": 10223372036854775800, "boolean": true }'
820
854
- ' { "index": { "_index": "test-doc-values", "_id": "2" }}'
821
- - ' { "some_keyword": "400", "byte": 121, "double": 101.0, "float": "801.0", "half_float": "401.0", "integer": 1291, "long": 13457, "short": 151, "unsigned_long": 10223372036854775801 }'
855
+ - ' { "some_keyword": "400", "byte": 121, "double": 101.0, "float": "801.0", "half_float": "401.0", "integer": 1291, "long": 13457, "short": 151, "unsigned_long": 10223372036854775801, "boolean": true }'
822
856
- ' { "index": { "_index": "test-doc-values", "_id": "3" } }'
823
- - ' { "some_keyword": "5", "byte": 122, "double": 102.0, "float": "802.0", "half_float": "402.0", "integer": 1292, "long": 13458, "short": 152, "unsigned_long": 10223372036854775802 }'
857
+ - ' { "some_keyword": "5", "byte": 122, "double": 102.0, "float": "802.0", "half_float": "402.0", "integer": 1292, "long": 13458, "short": 152, "unsigned_long": 10223372036854775802, "boolean": false }'
824
858
825
859
- do :
826
860
search :
@@ -936,6 +970,17 @@ setup:
936
970
937
971
- match : { hits.total: 1 }
938
972
973
+ - do :
974
+ search :
975
+ rest_total_hits_as_int : true
976
+ index : test-doc-values
977
+ body :
978
+ query :
979
+ term :
980
+ boolean : false
981
+
982
+ - match : { hits.total: 1 }
983
+
939
984
940
985
- do :
941
986
search :
0 commit comments