Skip to content

Commit

Permalink
use random splits for sort tests (#5303)
Browse files Browse the repository at this point in the history
  • Loading branch information
PSeitz authored Aug 27, 2024
1 parent 4317e09 commit 0d4d143
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,39 @@ engines:
endpoint: _elastic/sortorder/_search
json:
query:
match_all: {}
bool:
must_not:
match:
count: 10
sort:
- count: {"order" : "desc"}
expected:
hits:
total:
value: 7
value: 4
relation: "eq"
hits:
- _source: { "count": 15, "id": 2 }
- _source: { "count": 10, "id": 0 }
- _source: { "count": 10, "id": 2 }
- _source: { "count": 10, "id": 1 }
- _source: {"count": -2.5, "id": 4}
- _source: { "count": -2.5, "id": 4 }
- _source: { "id": 5 }
- _source: { "id": 3 }
---
endpoint: _elastic/sortorder/_search
json:
query:
match_all: {}
bool:
must_not:
match:
count: 10
sort:
- count: {"order" : "asc"}
expected:
hits:
total:
value: 7
value: 4
relation: "eq"
hits:
- _source: {"count": -2.5, "id": 4}
- _source: {"count": 10, "id": 1 }
- _source: {"count": 10, "id": 2 }
- _source: {"count": 10, "id": 0 }
- _source: {"count": 15, "id": 2 }
- _source: {"id": 3}
- _source: {"id": 5}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,13 @@ method: POST
endpoint: sortorder/ingest
params:
commit: force
ndjson:
min_splits: 1
max_splits: 10
shuffle_ndjson:
- {"count": 10, "id": 1}
- {"count": 10, "id": 2}
- {"count": 15, "id": 2}
- {"id": 3}
---
# Ingest documents split #2
method: POST
endpoint: sortorder/ingest
params:
commit: force
ndjson:
- {"count": 10, "id": 0}
- {"count": -2.5, "id": 4}
- {"id": 5}
Expand Down

0 comments on commit 0d4d143

Please sign in to comment.