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
144
test/tests/facet/searches.json
Normal file
144
test/tests/facet/searches.json
Normal file
|
@ -0,0 +1,144 @@
|
|||
[
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 0,
|
||||
"query": {
|
||||
"field": "category",
|
||||
"term": "inventory"
|
||||
},
|
||||
"facets": {
|
||||
"types": {
|
||||
"size": 3,
|
||||
"field": "type"
|
||||
}
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 10,
|
||||
"hits": [],
|
||||
"facets": {
|
||||
"types": {
|
||||
"field": "type",
|
||||
"total": 10,
|
||||
"missing": 0,
|
||||
"other": 0,
|
||||
"terms": [
|
||||
{
|
||||
"term": "book",
|
||||
"count": 5
|
||||
},
|
||||
{
|
||||
"term": "movie",
|
||||
"count": 4
|
||||
},
|
||||
{
|
||||
"term": "game",
|
||||
"count": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 0,
|
||||
"query": {
|
||||
"field": "category",
|
||||
"term": "inventory"
|
||||
},
|
||||
"facets": {
|
||||
"types": {
|
||||
"size": 3,
|
||||
"field": "rating",
|
||||
"numeric_ranges": [
|
||||
{
|
||||
"name": "low",
|
||||
"max": 5
|
||||
},
|
||||
{
|
||||
"name": "high",
|
||||
"min": 5
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 10,
|
||||
"hits": [],
|
||||
"facets": {
|
||||
"types": {
|
||||
"field": "rating",
|
||||
"total": 10,
|
||||
"missing": 0,
|
||||
"other": 0,
|
||||
"numeric_ranges": [
|
||||
{
|
||||
"name": "high",
|
||||
"count": 6,
|
||||
"min": 5
|
||||
},
|
||||
{
|
||||
"name": "low",
|
||||
"count": 4,
|
||||
"max": 5
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 0,
|
||||
"query": {
|
||||
"field": "category",
|
||||
"term": "inventory"
|
||||
},
|
||||
"facets": {
|
||||
"types": {
|
||||
"size": 3,
|
||||
"field": "updated",
|
||||
"date_ranges": [
|
||||
{
|
||||
"name": "old",
|
||||
"end": "2012-01-01"
|
||||
},
|
||||
{
|
||||
"name": "new",
|
||||
"start": "2012-01-01"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 10,
|
||||
"hits": [],
|
||||
"facets": {
|
||||
"types": {
|
||||
"field": "updated",
|
||||
"total": 10,
|
||||
"missing": 0,
|
||||
"other": 0,
|
||||
"date_ranges": [
|
||||
{
|
||||
"name": "new",
|
||||
"count": 9,
|
||||
"start": "2012-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"name": "old",
|
||||
"count": 1,
|
||||
"end": "2012-01-01T00:00:00Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue