Update getting-started.asciidoc (#23180)
The "sort" and "_score" fields are contained within the "hits" field.
This commit is contained in:
parent
139eb69fe4
commit
ec686b52c1
|
@ -677,8 +677,8 @@ As for the response, we see the following parts:
|
||||||
* `hits` – search results
|
* `hits` – search results
|
||||||
* `hits.total` – total number of documents matching our search criteria
|
* `hits.total` – total number of documents matching our search criteria
|
||||||
* `hits.hits` – actual array of search results (defaults to first 10 documents)
|
* `hits.hits` – actual array of search results (defaults to first 10 documents)
|
||||||
* `sort` - sort key for results (missing if sorting by score)
|
* `hits.sort` - sort key for results (missing if sorting by score)
|
||||||
* `_score` and `max_score` - ignore these fields for now
|
* `hits._score` and `max_score` - ignore these fields for now
|
||||||
|
|
||||||
Here is the same exact search above using the alternative request body method:
|
Here is the same exact search above using the alternative request body method:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue