Adding upstream version 2.5.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
c71cb8b61d
commit
982828099e
783 changed files with 150650 additions and 0 deletions
3
test/tests/alias/datasets/shard0/a.json
Normal file
3
test/tests/alias/datasets/shard0/a.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"name": "a"
|
||||
}
|
3
test/tests/alias/datasets/shard0/c.json
Normal file
3
test/tests/alias/datasets/shard0/c.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"name": "c"
|
||||
}
|
3
test/tests/alias/datasets/shard1/b.json
Normal file
3
test/tests/alias/datasets/shard1/b.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"name": "b"
|
||||
}
|
3
test/tests/alias/datasets/shard1/d.json
Normal file
3
test/tests/alias/datasets/shard1/d.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"name": "d"
|
||||
}
|
3
test/tests/alias/mapping.json
Normal file
3
test/tests/alias/mapping.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"default_analyzer": "keyword"
|
||||
}
|
76
test/tests/alias/searches.json
Normal file
76
test/tests/alias/searches.json
Normal file
|
@ -0,0 +1,76 @@
|
|||
[
|
||||
{
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue