mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 07:37:19 -04:00
[Docs] REST high-level client: Fix code for most basic search request (#28916)
We also need to add the query to the request.
This commit is contained in:
parent
bcfb7ab591
commit
b42804d182
2 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,7 @@ include-tagged::{doc-tests}/SearchDocumentationIT.java[search-request-basic]
|
|||
<1> Creates the `SeachRequest`. Without arguments this runs against all indices.
|
||||
<2> Most search parameters are added to the `SearchSourceBuilder`. It offers setters for everything that goes into the search request body.
|
||||
<3> Add a `match_all` query to the `SearchSourceBuilder`.
|
||||
<4> Add the `SearchSourceBuilder` to the `SeachRequest`.
|
||||
|
||||
===== Optional arguments
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue