Skip to content

Commit

Permalink
set refresh interval to -1 (opensearch-project#14201) (opensearch-pro…
Browse files Browse the repository at this point in the history
…ject#14212)

(cherry picked from commit c381b34)

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: kkewwei <kkewwei@163.com>
  • Loading branch information
2 people authored and kkewwei committed Jul 24, 2024
1 parent f7c9eb8 commit 585efc4
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,7 @@ setup:
settings:
number_of_replicas: 0
number_of_shards: 1
refresh_interval: -1
mappings:
properties:
date:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,7 @@ setup:
settings:
number_of_replicas: 0
number_of_shards: 1
refresh_interval: -1
mappings:
properties:
date:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,36 @@ setup:
version: " - 2.14.99"
reason: debug info for filter rewrite added in 3.0.0 (to be backported to 2.14.0)

- do:
indices.create:
index: test_profile
body:
settings:
number_of_shards: 1
number_of_replicas: 0
refresh_interval: -1
mappings:
properties:
date:
type: date

- do:
bulk:
index: test_profile
refresh: true
body:
- '{"index": {}}'
- '{"date": "2020-03-01", "v": 1}'
- '{"index": {}}'
- '{"date": "2020-03-02", "v": 2}'
- '{"index": {}}'
- '{"date": "2020-03-08", "v": 3}'
- '{"index": {}}'
- '{"date": "2020-03-09", "v": 4}'

- do:
search:
index: test_profile
body:
profile: true
size: 0
Expand Down

0 comments on commit 585efc4

Please sign in to comment.