mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 09:28:55 -04:00
[docs] Fix various syntax and rendering errors (#127062)
* fix syntax and rendering errors * clean up * fix versions * more clean up * more fixes * more fixes * more fixes
This commit is contained in:
parent
41eefb62d3
commit
08552f1c2e
95 changed files with 1439 additions and 1195 deletions
|
@ -42,7 +42,7 @@ Each context requires a script, but additional parameters depend on the context
|
|||
The `emit` method cannot accept `null` values. Do not call this method if the referenced fields do not have any values.
|
||||
:::
|
||||
|
||||
::::{dropdown} Signatures of `emit`
|
||||
::::{dropdown} Signatures of emit
|
||||
The signature for `emit` depends on the `type` of the field.
|
||||
|
||||
`boolean`
|
||||
|
@ -72,7 +72,7 @@ $$$_contexts$$$
|
|||
`context`
|
||||
: (Optional, string) The context that the script should run in. Defaults to `painless_test` if no context is specified.
|
||||
|
||||
::::::{dropdown} Properties of `context`
|
||||
::::::{dropdown} Properties of context
|
||||
`painless_test`
|
||||
: The default context if no other context is specified. See [test context](#painless-execute-test).
|
||||
|
||||
|
@ -130,7 +130,7 @@ Result ordering in the field contexts is not guaranteed.
|
|||
::::
|
||||
|
||||
|
||||
:::::{dropdown} Properties of `context_setup`
|
||||
:::::{dropdown} Properties of context_setup
|
||||
`document`
|
||||
: (Required, string) Document that’s temporarily indexed in-memory and accessible from the script.
|
||||
|
||||
|
|
|
@ -7,9 +7,8 @@ mapped_pages:
|
|||
|
||||
An operator is the most basic action that can be taken to evaluate values in a script. An expression is one-to-many consecutive operations. Precedence is the order in which an operator will be evaluated relative to another operator. Associativity is the direction within an expression in which a specific operator is evaluated. The following table lists all available operators:
|
||||
|
||||
| | | | | |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| **Operator** | **Category** | **Symbol(s)** | **Precedence** | **Associativity** |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| [Precedence](/reference/scripting-languages/painless/painless-operators-general.md#precedence-operator) | [General](/reference/scripting-languages/painless/painless-operators-general.md) | () | 0 | left → right |
|
||||
| [Method Call](/reference/scripting-languages/painless/painless-operators-reference.md#method-call-operator) | [Reference](/reference/scripting-languages/painless/painless-operators-reference.md) | . () | 1 | left → right |
|
||||
| [Field Access](/reference/scripting-languages/painless/painless-operators-reference.md#field-access-operator) | [Reference](/reference/scripting-languages/painless/painless-operators-reference.md) | . | 1 | left → right |
|
||||
|
|
|
@ -23,7 +23,7 @@ $$$runtime-emit-method$$$
|
|||
::::
|
||||
|
||||
|
||||
::::{dropdown} Signatures of `emit`
|
||||
::::{dropdown} Signatures of emit
|
||||
The signature for `emit` depends on the `type` of the field.
|
||||
|
||||
`boolean`
|
||||
|
@ -53,20 +53,18 @@ $$$runtime-emit-method$$$
|
|||
`grok`
|
||||
: Defines a [grok pattern](/reference/enrich-processor/grok-processor.md) to extract structured fields out of a single text field within a document. A grok pattern is like a regular expression that supports aliased expressions that can be reused. See [Define a runtime field with a grok pattern](docs-content://manage-data/data-store/mapping/explore-data-with-runtime-fields.md#runtime-examples-grok).
|
||||
|
||||
::::{dropdown} Properties of `grok`
|
||||
::::{dropdown} Properties of grok
|
||||
`extract`
|
||||
: Indicates the values to return. This method applies only to `grok` and `dissect` methods.
|
||||
|
||||
::::
|
||||
|
||||
|
||||
`dissect`
|
||||
: Defines a [dissect pattern](/reference/enrich-processor/dissect-processor.md). Dissect operates much like grok, but does not accept regular expressions. See [Define a runtime field with a dissect pattern](docs-content://manage-data/data-store/mapping/explore-data-with-runtime-fields.md#runtime-examples-dissect).
|
||||
|
||||
::::{dropdown} Properties of `dissect`
|
||||
::::{dropdown} Properties of dissect
|
||||
`extract`
|
||||
: Indicates the values to return. This method applies only to `grok` and `dissect` methods.
|
||||
|
||||
::::
|
||||
|
||||
|
||||
|
|
|
@ -28,10 +28,10 @@ The following primitive types are available. The corresponding reference type is
|
|||
: 16-bit, unsigned, Unicode character. Range: [`0`, `65535`]. Default: `0` or `\u0000`.
|
||||
|
||||
`int` (`Integer`)
|
||||
: 32-bit, signed, two’s complement integer. Range: [`-2`^`31`^, `2`^`31`^`-1`]. Default: `0`.
|
||||
: 32-bit, signed, two’s complement integer. Range: [`-2^31`, `2^31 - 1`]. Default: `0`.
|
||||
|
||||
`long` (`Long`)
|
||||
: 64-bit, signed, two’s complement integer. Range: [`-2`^`63`^, `2`^`63`^`-1`]. Default: `0`.
|
||||
: 64-bit, signed, two’s complement integer. Range: [`-2^63`, `2^63 - 1`]. Default: `0`.
|
||||
|
||||
`float (`Float`)`
|
||||
: 32-bit, signed, single-precision, IEEE 754 floating point number. Default `0.0`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue