Skip to content

Commit

Permalink
Clarify why there's unusual sorting
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Widdis <[email protected]>
  • Loading branch information
dbwiddis committed Jul 22, 2024
1 parent 953a705 commit 37737e7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,6 @@ teardown:
"_source": false,
"docvalue_fields": [ "a" ]
}
# a is stored sorted for some unknown (to the test author) reason
# which makes it really hard to write "expected" values on tests
# a is stored sorted because docvalue_fields is pre-sorted to optimize aggregations
# this is poorly documented which makes it really hard to write "expected" values on tests
- match: { hits.hits.0.fields: { "a": [1, 3, 4], "b": [4, 3, 1] } }

0 comments on commit 37737e7

Please sign in to comment.