87 lines
4.5 KiB
Plaintext
87 lines
4.5 KiB
Plaintext
[[reference-shared-types-scripts_painless_execute]]
|
||
|
||
////////
|
||
===========================================================================================================================
|
||
|| ||
|
||
|| ||
|
||
|| ||
|
||
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|
||
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|
||
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|
||
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|
||
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|
||
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|
||
|| ||
|
||
|| ||
|
||
|| 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> ||
|
||
|| ||
|
||
|| ||
|
||
|| ||
|
||
===========================================================================================================================
|
||
////////
|
||
|
||
|
||
|
||
== Shared ScriptsPainlessExecute types
|
||
|
||
|
||
[discrete]
|
||
[[ScriptsPainlessExecutePainlessContextSetup]]
|
||
=== ScriptsPainlessExecutePainlessContextSetup
|
||
|
||
[pass]
|
||
++++
|
||
<pre>
|
||
++++
|
||
interface ScriptsPainlessExecutePainlessContextSetup {
|
||
pass:[/**] @property document Document that’s temporarily indexed in-memory and accessible from the script. */
|
||
document: any
|
||
pass:[/**] @property index Index containing a mapping that’s compatible with the indexed document. You may specify a remote index by prefixing the index with the remote cluster alias. */
|
||
index: <<IndexName>>
|
||
pass:[/**] @property query Use this parameter to specify a query for computing a score. */
|
||
query?: <<QueryDslQueryContainer>>
|
||
}
|
||
[pass]
|
||
++++
|
||
</pre>
|
||
++++
|
||
|
||
[discrete]
|
||
[[ScriptsPainlessExecuteRequest]]
|
||
=== ScriptsPainlessExecuteRequest
|
||
|
||
[pass]
|
||
++++
|
||
<pre>
|
||
++++
|
||
interface ScriptsPainlessExecuteRequest extends <<RequestBase>> {
|
||
context?: string
|
||
context_setup?: <<ScriptsPainlessExecutePainlessContextSetup>>
|
||
script?: <<Script>> | string
|
||
}
|
||
[pass]
|
||
++++
|
||
</pre>
|
||
++++
|
||
|
||
[discrete]
|
||
[[ScriptsPainlessExecuteResponse]]
|
||
=== ScriptsPainlessExecuteResponse
|
||
|
||
[pass]
|
||
++++
|
||
<pre>
|
||
++++
|
||
interface ScriptsPainlessExecuteResponse<TResult = unknown> {
|
||
result: TResult
|
||
}
|
||
[pass]
|
||
++++
|
||
</pre>
|
||
++++
|