File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
docs/reference/migration/migrate_7_0 Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -213,19 +213,21 @@ with a `value` and a `relation`. `value` indicates the number of hits that
213213match and `relation` indicates whether the value is accurate (`eq`) or a lower bound
214214(`gte`):
215215
216- ```
216+ [source,js]
217+ --------------------------------------------------
217218{
218219 "hits": {
219- "total": { <1>
220+ "total": {
220221 "value": 1000,
221222 "relation": "eq"
222223 },
223224 ...
224225 }
225226}
226- ```
227+ --------------------------------------------------
228+ // NOTCONSOLE
227229
228- The " total" object in the response indicates that the query matches exactly 1000
230+ The ` total` object in the response indicates that the query matches exactly 1000
229231documents ("eq"). The `value` is always accurate (`"relation": "eq"`) when
230232`track_total_hits` is set to true in the request.
231233You can also retrieve `hits.total` as a number in the rest response by adding
You can’t perform that action at this time.
0 commit comments