92 lines
4.3 KiB
Plaintext
92 lines
4.3 KiB
Plaintext
[[reference-explain]]
|
||
|
||
////////
|
||
===========================================================================================================================
|
||
|| ||
|
||
|| ||
|
||
|| ||
|
||
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|
||
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|
||
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|
||
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|
||
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|
||
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|
||
|| ||
|
||
|| ||
|
||
|| This file is autogenerated, DO NOT send pull requests that changes this file directly. ||
|
||
|| You should update the script that does the generation, which can be found in: ||
|
||
|| https://github.com/elastic/elastic-client-generator-js ||
|
||
|| ||
|
||
|| You can run the script with the following command: ||
|
||
|| npm run elasticsearch -- --version <version> ||
|
||
|| ||
|
||
|| ||
|
||
|| ||
|
||
===========================================================================================================================
|
||
////////
|
||
|
||
[discrete]
|
||
[[client.explain]]
|
||
=== client.explain
|
||
|
||
Explain a document match result. Returns information about why a specific document matches, or doesn’t match, a query.
|
||
|
||
{ref}/search-explain.html[{es} documentation]
|
||
|
||
[discrete]
|
||
==== Function signature
|
||
|
||
[source,ts]
|
||
----
|
||
(ExplainRequest, options?): Promise<ExplainResponse>
|
||
----
|
||
|
||
[discrete]
|
||
==== ExplainRequest
|
||
|
||
[pass]
|
||
++++
|
||
<pre>
|
||
++++
|
||
interface ExplainRequest extends <<RequestBase>> {
|
||
id: <<Id>>
|
||
index: <<IndexName>>
|
||
analyzer?: string
|
||
analyze_wildcard?: boolean
|
||
default_operator?: <<QueryDslOperator>>
|
||
df?: string
|
||
lenient?: boolean
|
||
preference?: string
|
||
routing?: <<Routing>>
|
||
_source?: <<SearchSourceConfigParam>>
|
||
_source_excludes?: <<Fields>>
|
||
_source_includes?: <<Fields>>
|
||
stored_fields?: <<Fields>>
|
||
q?: string
|
||
query?: <<QueryDslQueryContainer>>
|
||
}
|
||
|
||
[pass]
|
||
++++
|
||
</pre>
|
||
++++
|
||
[discrete]
|
||
==== ExplainResponse
|
||
|
||
[pass]
|
||
++++
|
||
<pre>
|
||
++++
|
||
interface ExplainResponse<TDocument = unknown> {
|
||
_index: <<IndexName>>
|
||
_id: <<Id>>
|
||
matched: boolean
|
||
explanation?: <<ExplainExplanationDetail>>
|
||
get?: <<InlineGet>><TDocument>
|
||
}
|
||
|
||
[pass]
|
||
++++
|
||
</pre>
|
||
++++
|