Skip to content

Commit

Permalink
use search preference to hit same shard copy with different search re…
Browse files Browse the repository at this point in the history
…quests, so that cache stats are assertable.
  • Loading branch information
martijnvg committed Sep 12, 2023
1 parent c64c57f commit fcded44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ setup:
rest_total_hits_as_int: true
size: 0
request_cache: true
preference: hit-same-shard-copy
body:
aggs:
itemsNotify:
Expand Down Expand Up @@ -68,6 +69,7 @@ setup:
rest_total_hits_as_int: true
size: 0
request_cache: true
preference: hit-same-shard-copy
body:
aggs:
itemsNotify:
Expand Down Expand Up @@ -107,6 +109,7 @@ setup:
rest_total_hits_as_int: true
size: 0
request_cache: true
preference: hit-same-shard-copy
body:
aggs:
itemsNotify:
Expand Down Expand Up @@ -140,6 +143,7 @@ setup:
rest_total_hits_as_int: true
size: 0
request_cache: true
preference: hit-same-shard-copy
body:
aggs:
itemsNotify:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ nested:
rest_total_hits_as_int: true
size: 0
request_cache: true
preference: hit-same-shard-copy
index: test
body:
aggs:
Expand Down Expand Up @@ -584,6 +585,7 @@ nested:
rest_total_hits_as_int: true
size: 0
request_cache: true
preference: hit-same-shard-copy
index: test
body:
aggs:
Expand Down

0 comments on commit fcded44

Please sign in to comment.