More docs changes
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
[[reference-search]]
|
||||
== client.search
|
||||
|
||||
////////
|
||||
===========================================================================================================================
|
||||
@ -32,18 +33,20 @@
|
||||
</style>
|
||||
++++
|
||||
|
||||
|
||||
[discrete]
|
||||
[[client.search]]
|
||||
== client.search
|
||||
== `client.search()`
|
||||
|
||||
Run a search. Get search hits that match the query defined in the request. You can provide search queries using the `q` query string parameter or the request body. If both are specified, only the query parameter is used.
|
||||
|
||||
{ref}/search-search.html[{es} documentation]
|
||||
[discrete]
|
||||
== Function signature
|
||||
=== Function signature
|
||||
|
||||
[source,ts]
|
||||
----
|
||||
(SearchRequest, options?): Promise<SearchResponse>
|
||||
(request: SearchRequest, options?: TransportRequestOptions) => Promise<SearchResponse>
|
||||
----
|
||||
|
||||
[discrete]
|
||||
@ -124,6 +127,7 @@ interface SearchRequest extends <<RequestBase>> {
|
||||
|
||||
----
|
||||
|
||||
|
||||
[discrete]
|
||||
=== Response
|
||||
|
||||
@ -133,3 +137,4 @@ type SearchResponse<TDocument = unknown, TAggregations = Record<<<AggregateName>
|
||||
|
||||
----
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user