From 06d003bee3fdbf00ee257d0101c15a0fc8fe74f6 Mon Sep 17 00:00:00 2001 From: Oleksandr Kolomiiets Date: Sat, 2 Nov 2024 10:03:16 -0700 Subject: [PATCH] `ignore_above` default to 8191 for `logsdb` (#113442) (#116122) (cherry picked from commit 521e4341d7d310ecc4634c5a75a1690b7d9c4884) --- .../rest-api-spec/test/logsdb/10_settings.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/logsdb/10_settings.yml b/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/logsdb/10_settings.yml index 499d805c6e500..5eb9ff42e15ba 100644 --- a/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/logsdb/10_settings.yml +++ b/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/logsdb/10_settings.yml @@ -705,6 +705,7 @@ logsdb with default ignore dynamic beyond limit and default sorting: body: query: match_all: {} + sort: "@timestamp" - match: { hits.total.value: 2 } - match: { hits.hits.0._source.name: "bar" } @@ -766,15 +767,16 @@ logsdb with default ignore dynamic beyond limit and non-default sorting: body: query: match_all: {} + sort: "@timestamp" - match: { hits.total.value: 2 } - - match: { hits.hits.0._source.name: "foo" } - - match: { hits.hits.0._source.value: 10 } - - match: { hits.hits.0._source.message: "the quick brown fox" } + - match: { hits.hits.0._source.name: "bar" } + - match: { hits.hits.0._source.value: 20 } + - match: { hits.hits.0._source.message: "jumps over the lazy dog" } - match: { hits.hits.0._ignored: [ "host", "message", "pid", "region", "value" ] } - - match: { hits.hits.1._source.name: "bar" } - - match: { hits.hits.1._source.value: 20 } - - match: { hits.hits.1._source.message: "jumps over the lazy dog" } + - match: { hits.hits.1._source.name: "foo" } + - match: { hits.hits.1._source.value: 10 } + - match: { hits.hits.1._source.message: "the quick brown fox" } - match: { hits.hits.1._ignored: [ "host", "message", "pid", "region", "value" ] } --- @@ -871,6 +873,7 @@ logsdb with default ignore dynamic beyond limit and subobjects false: body: query: match_all: {} + sort: "@timestamp" - match: { hits.total.value: 2 } - match: { hits.hits.0._source.name: "bar" }