Skip to content

Commit 439dae1

Browse files
authored
Merge branch 'main' into synthetic_vectors
2 parents 6cdf89b + 1126129 commit 439dae1

File tree

181 files changed

+3320
-1256
lines changed

Some content is hidden

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

181 files changed

+3320
-1256
lines changed

docs/changelog/129146.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 129146
2+
summary: "[ML] Add IBM watsonx Completion and Chat Completion support to the Inference Plugin"
3+
area: Machine Learning
4+
type: enhancement
5+
issues: []

docs/changelog/130158.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 130158
2+
summary: Handle unavailable MD5 in ES|QL
3+
area: ES|QL
4+
type: bug
5+
issues: []

docs/changelog/130303.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 130303
2+
summary: Drain responses on completion for `TransportNodesAction`
3+
area: Distributed
4+
type: bug
5+
issues: []

docs/changelog/130421.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 130421
2+
summary: Support avg on aggregate metric double
3+
area: ES|QL
4+
type: bug
5+
issues: []

docs/reference/elasticsearch/mapping-reference/range.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,70 @@ The following parameters are accepted by range types:
215215
[`store`](/reference/elasticsearch/mapping-reference/mapping-store.md)
216216
: Whether the field value should be stored and retrievable separately from the [`_source`](/reference/elasticsearch/mapping-reference/mapping-source-field.md) field. Accepts `true` or `false` (default).
217217

218+
## Sorting
219+
220+
Sorting is not supported for any of the `range` field types. Attempting to sort by a field of type range_field will result in a `400 Bad Request` response.
221+
For example, executing a sort query on a field of type `integer_range`,
222+
```console
223+
PUT idx
224+
{
225+
"mappings": {
226+
"properties": {
227+
"my_range": {
228+
"type": "integer_range"
229+
}
230+
}
231+
}
232+
}
233+
234+
POST idx/_search
235+
{
236+
"sort": [
237+
{
238+
"my_range": {
239+
"order": "asc"
240+
}
241+
}
242+
]
243+
}
244+
```
245+
results in the following response:
246+
```console-result
247+
{
248+
"error": {
249+
"root_cause": [
250+
{
251+
"type": "illegal_argument_exception",
252+
"reason": "Sorting by range field [my_range] is not supported"
253+
}
254+
],
255+
"type": "search_phase_execution_exception",
256+
"reason": "all shards failed",
257+
"phase": "query",
258+
"grouped": true,
259+
"failed_shards": [
260+
{
261+
"shard": 0,
262+
"index": "idx",
263+
"node": "7pzVSCf5TuSNZYj-N7u3tw",
264+
"reason": {
265+
"type": "illegal_argument_exception",
266+
"reason": "Sorting by range field [my_range] is not supported"
267+
}
268+
}
269+
],
270+
"caused_by": {
271+
"type": "illegal_argument_exception",
272+
"reason": "Sorting by range field [my_range] is not supported",
273+
"caused_by": {
274+
"type": "illegal_argument_exception",
275+
"reason": "Sorting by range field [my_range] is not supported"
276+
}
277+
}
278+
},
279+
"status": 400
280+
}
281+
```
218282

219283
## Synthetic `_source` [range-synthetic-source]
220284

docs/reference/query-languages/esql/_snippets/commands/layout/lookup-join.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ results, the output will contain one row for each matching combination.
4242
For important information about using `LOOKUP JOIN`, refer to [Usage notes](../../../../esql/esql-lookup-join.md#usage-notes).
4343
::::
4444

45+
:::{include} ../types/lookup-join.md
46+
:::
47+
4548
**Examples**
4649

4750
**IP Threat correlation**: This query would allow you to see if any source
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
% This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.
2+
3+
**Supported types**
4+
5+
| field from the left index | field from the lookup index |
6+
| --- | --- |
7+
| boolean | boolean |
8+
| byte | half_float, float, double, scaled_float, byte, short, integer, long |
9+
| date | date |
10+
| date_nanos | date_nanos |
11+
| double | half_float, float, double, scaled_float, byte, short, integer, long |
12+
| float | half_float, float, double, scaled_float, byte, short, integer, long |
13+
| half_float | half_float, float, double, scaled_float, byte, short, integer, long |
14+
| integer | half_float, float, double, scaled_float, byte, short, integer, long |
15+
| ip | ip |
16+
| keyword | keyword |
17+
| long | half_float, float, double, scaled_float, byte, short, integer, long |
18+
| scaled_float | half_float, float, double, scaled_float, byte, short, integer, long |
19+
| short | half_float, float, double, scaled_float, byte, short, integer, long |
20+
| text | keyword |
21+

docs/reference/query-languages/esql/_snippets/functions/description/knn.md

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

docs/reference/query-languages/esql/_snippets/functions/examples/knn.md

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

docs/reference/query-languages/esql/_snippets/functions/functionNamedParams/knn.md

Lines changed: 19 additions & 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)