Commit f990e291 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

feat: add total stats

parent 8e0c82c0
......@@ -120,7 +120,9 @@ This object is specified according to the [Elasticsearch Query DSL](https://www.
| Field Name | Cardinality | Type | Description |
|----|----|----|----|
| value | 1 | int | number of total hits |
| value | 1 | int | number of total hits (in this scope: pages) |
| manifests | 1 | int | total number of distinct manifests in hits |
| matches | 1 | int | total number of matches (equal to the sum of all values from `occurrencesOnPage`) |
| relation | 1 | string | `eq` (from Elasticsearch), means that there are exactly this number of total hits available |
### Hits Array
......@@ -148,7 +150,9 @@ This describes a single object from the `hits` array that MUST be present but MA
"hits": {
"total": {
"value": 2,
"relation": "eq"
"relation": "eq",
"manifests": 2,
"matches": 5
},
"hits" : [ {
"item": "/api/textapi/ahikar/syriac/3r678-186v/latest/item.json",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment