Skip to content

Commit 0dea029

Browse files
authored
Merge branch 'main' into lucene_snapshot_10_1
2 parents f604a1f + 776ebda commit 0dea029

File tree

164 files changed

+4456
-2612
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+4456
-2612
lines changed

docs/changelog/120360.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 120360
2+
summary: ESQL - Add Match function options
3+
area: ES|QL
4+
type: feature
5+
issues: []

docs/changelog/120725.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pr: 120725
2+
summary: |-
3+
A new query parameter `?include_source_on_error` was added for create / index, update and bulk REST APIs to control
4+
if to include the document source in the error response in case of parsing errors. The default value is `true`.
5+
area: Infra/REST API
6+
type: enhancement
7+
issues: []

docs/changelog/120959.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 120959
2+
summary: Remove unnecessary entitlement
3+
area: Infra/Plugins
4+
type: bug
5+
issues: []

docs/reference/esql/esql-syntax.asciidoc

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,47 @@ Timespan literals are not whitespace sensitive. These expressions are all valid:
169169
* `1 day`
170170
* `1 day`
171171

172+
[discrete]
173+
[[esql-function-named-params]]
174+
==== Function named parameters
175+
176+
Some functions like <<esql-match,match>> use named parameters to provide additional options.
177+
178+
Named parameters allow specifying name value pairs, using the following syntax:
179+
180+
`{"option_name": option_value, "another_option_name": another_value}`
181+
182+
Valid value types are strings, numbers and booleans.
183+
184+
An example using <<esql-match,match>>:
185+
186+
[source,console]
187+
----
188+
POST /_query
189+
{
190+
"query": """
191+
FROM library
192+
| WHERE match(author, "Frank Herbert", {"minimum_should_match": 2, "operator": "AND"})
193+
| LIMIT 5
194+
"""
195+
}
196+
----
197+
// TEST[setup:library]
198+
199+
You can also use <<esql-rest-params,query parameters>> in function named parameters:
200+
201+
[source,console]
202+
----
203+
POST /_query
204+
{
205+
"query": """
206+
FROM library
207+
| EVAL year = DATE_EXTRACT("year", release_date)
208+
| WHERE page_count > ? AND match(author, ?, {"minimum_should_match": ?})
209+
| LIMIT 5
210+
""",
211+
"params": [300, "Frank Herbert", 2]
212+
}
213+
----
214+
// TEST[setup:library]
215+

docs/reference/esql/functions/description/match.asciidoc

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/examples/match.asciidoc

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/functionNamedParams/match.asciidoc

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/kibana/definition/match.json

Lines changed: 206 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/kibana/docs/match.md

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/layout/match.asciidoc

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)