mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
[DOCS] Fixes formatting in breaking changes
This commit is contained in:
parent
db7f00098e
commit
85848af8cf
@ -213,19 +213,21 @@ with a `value` and a `relation`. `value` indicates the number of hits that
|
|||||||
match and `relation` indicates whether the value is accurate (`eq`) or a lower bound
|
match and `relation` indicates whether the value is accurate (`eq`) or a lower bound
|
||||||
(`gte`):
|
(`gte`):
|
||||||
|
|
||||||
```
|
[source,js]
|
||||||
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"hits": {
|
"hits": {
|
||||||
"total": { <1>
|
"total": {
|
||||||
"value": 1000,
|
"value": 1000,
|
||||||
"relation": "eq"
|
"relation": "eq"
|
||||||
},
|
},
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
--------------------------------------------------
|
||||||
|
// NOTCONSOLE
|
||||||
|
|
||||||
The "total" object in the response indicates that the query matches exactly 1000
|
The `total` object in the response indicates that the query matches exactly 1000
|
||||||
documents ("eq"). The `value` is always accurate (`"relation": "eq"`) when
|
documents ("eq"). The `value` is always accurate (`"relation": "eq"`) when
|
||||||
`track_total_hits` is set to true in the request.
|
`track_total_hits` is set to true in the request.
|
||||||
You can also retrieve `hits.total` as a number in the rest response by adding
|
You can also retrieve `hits.total` as a number in the rest response by adding
|
||||||
|
Loading…
x
Reference in New Issue
Block a user