Skip to content

Commit c381b34

Browse files
set refresh interval to -1 (opensearch-project#14201)
Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>
1 parent 2f8cb07 commit c381b34

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/10_histogram.yml

+1
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,7 @@ setup:
658658
settings:
659659
number_of_replicas: 0
660660
number_of_shards: 1
661+
refresh_interval: -1
661662
mappings:
662663
properties:
663664
date:

rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/230_composite.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,7 @@ setup:
10831083
settings:
10841084
number_of_replicas: 0
10851085
number_of_shards: 1
1086+
refresh_interval: -1
10861087
mappings:
10871088
properties:
10881089
date:

rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/330_auto_date_histogram.yml

+28
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,36 @@ setup:
106106
version: " - 2.99.99"
107107
reason: debug info for filter rewrite added in 3.0.0 (to be backported to 2.14.0)
108108

109+
- do:
110+
indices.create:
111+
index: test_profile
112+
body:
113+
settings:
114+
number_of_shards: 1
115+
number_of_replicas: 0
116+
refresh_interval: -1
117+
mappings:
118+
properties:
119+
date:
120+
type: date
121+
122+
- do:
123+
bulk:
124+
index: test_profile
125+
refresh: true
126+
body:
127+
- '{"index": {}}'
128+
- '{"date": "2020-03-01", "v": 1}'
129+
- '{"index": {}}'
130+
- '{"date": "2020-03-02", "v": 2}'
131+
- '{"index": {}}'
132+
- '{"date": "2020-03-08", "v": 3}'
133+
- '{"index": {}}'
134+
- '{"date": "2020-03-09", "v": 4}'
135+
109136
- do:
110137
search:
138+
index: test_profile
111139
body:
112140
profile: true
113141
size: 0

0 commit comments

Comments
 (0)