Skip to content

Commit a134f98

Browse files
committed
added explicit tie sorting to avoid inconsistency in serverless
1 parent 02d4610 commit a134f98

File tree

1 file changed

+2
-1
lines changed
  • x-pack/plugin/logsdb/src/yamlRestTest/resources/rest-api-spec/test/patterntext

1 file changed

+2
-1
lines changed

x-pack/plugin/logsdb/src/yamlRestTest/resources/rest-api-spec/test/patterntext/30_template_id.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ Sort by template_id descending from index config setting:
6464
index: test
6565
body:
6666
docvalue_fields: [ "foo.template_id" ]
67+
sort: ["_doc", "@timestamp"]
6768
query: { match_all: {} }
6869

6970
- match: { hits.total.value: 5 }
@@ -86,7 +87,7 @@ Sort by template_id ascending from request:
8687
index: test
8788
body:
8889
docvalue_fields: [ "foo.template_id" ]
89-
sort: "foo.template_id"
90+
sort: ["foo.template_id", "@timestamp"]
9091
query: { match_all: {} }
9192

9293
- match: { hits.total.value: 5 }

0 commit comments

Comments
 (0)