Some checks failed
Coverage / coverage (push) Failing after 6s
Tests / test (1.24.x, ubuntu-latest) (push) Failing after 42s
Tests / test (1.26.x, ubuntu-latest) (push) Failing after 38s
Tests / test (1.25.x, ubuntu-latest) (push) Failing after 35s
Tests / test (1.25.x, windows-latest) (push) Has been cancelled
Tests / test (1.26.x, macos-latest) (push) Has been cancelled
Tests / test (1.26.x, windows-latest) (push) Has been cancelled
Tests / test (1.24.x, macos-latest) (push) Has been cancelled
Tests / test (1.24.x, windows-latest) (push) Has been cancelled
Tests / test (1.25.x, macos-latest) (push) Has been cancelled
76 lines
1.1 KiB
JSON
76 lines
1.1 KiB
JSON
[
|
|
{
|
|
"comment": "match all across shards",
|
|
"search": {
|
|
"from": 0,
|
|
"size": 10,
|
|
"sort": ["-_score", "_id"],
|
|
"query": {
|
|
"match_all": {}
|
|
}
|
|
},
|
|
"result": {
|
|
"total_hits": 4,
|
|
"hits": [
|
|
{
|
|
"id": "a"
|
|
},
|
|
{
|
|
"id": "b"
|
|
},
|
|
{
|
|
"id": "c"
|
|
},
|
|
{
|
|
"id": "d"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "search after b (page 2 when size=2)",
|
|
"search": {
|
|
"from": 0,
|
|
"size": 2,
|
|
"sort": ["name"],
|
|
"search_after": ["b"],
|
|
"query": {
|
|
"match_all": {}
|
|
}
|
|
},
|
|
"result": {
|
|
"total_hits": 4,
|
|
"hits": [
|
|
{
|
|
"id": "c"
|
|
},
|
|
{
|
|
"id": "d"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "search before c (page 1 when size=2)",
|
|
"search": {
|
|
"from": 0,
|
|
"size": 2,
|
|
"sort": ["name"],
|
|
"search_before": ["c"],
|
|
"query": {
|
|
"match_all": {}
|
|
}
|
|
},
|
|
"result": {
|
|
"total_hits": 4,
|
|
"hits": [
|
|
{
|
|
"id": "a"
|
|
},
|
|
{
|
|
"id": "b"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
] |