Skip to content

Commit 39caa37

Browse files
committed
Merge branch 'main' into remote-enrich-after-lookup-join
2 parents 54245d9 + dc3ee44 commit 39caa37

File tree

108 files changed

+4645
-194
lines changed

Some content is hidden

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

108 files changed

+4645
-194
lines changed

.github/workflows/docs-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
uses: elastic/docs-builder/.github/workflows/preview-build.yml@main
1313
with:
1414
path-pattern: docs/**
15+
path-pattern-ignore: docs/changelog/**/*.yaml
1516
permissions:
1617
deployments: write
1718
id-token: write

benchmarks/src/main/java/org/elasticsearch/benchmark/vector/OSQScorerBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class OSQScorerBenchmark {
5252
LogConfigurator.configureESLogging(); // native access requires logging to be initialized
5353
}
5454

55-
@Param({ "1024" })
55+
@Param({ "384", "782", "1024" })
5656
int dims;
5757

5858
int length;

branches.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
{
1717
"branch": "8.18"
1818
},
19-
{
20-
"branch": "8.17"
21-
},
2219
{
2320
"branch": "7.17"
2421
}

docs/changelog/131429.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 131429
2+
summary: Prevent auto-sharding for data streams in LOOKUP index mode
3+
area: Data streams
4+
type: bug
5+
issues: []

docs/changelog/131536.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 131536
2+
summary: "Component Templates: Add `{created,modified}_date`"
3+
area: Ingest Node
4+
type: enhancement
5+
issues: []

docs/changelog/131706.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 131706
2+
summary: Add extension points to remediate index metadata in during snapshot restore
3+
area: Snapshot/Restore
4+
type: enhancement
5+
issues: []

docs/reference/elasticsearch/mapping-reference/semantic-text.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,30 @@ POST test-index/_search
267267
```
268268

269269
1. Specifies the maximum number of fragments to return.
270-
2. Sorts highlighted fragments by score when set to `score`. By default,
270+
2. Sorts the most relevant highlighted fragments by score when set to `score`. By default,
271271
fragments will be output in the order they appear in the field (order: none).
272272

273+
To use the `semantic` highlighter to view chunks in the order which they were indexed with no scoring,
274+
use the `match_all` query to retrieve them in the order they appear in the document:
275+
276+
```console
277+
POST test-index/_search
278+
{
279+
"query": {
280+
"match_all": {}
281+
},
282+
"highlight": {
283+
"fields": {
284+
"my_semantic_field": {
285+
"number_of_fragments": 5 <1>
286+
}
287+
}
288+
}
289+
}
290+
```
291+
292+
1. This will return the first 5 chunks, set this number higher to retrieve more chunks.
293+
273294
Highlighting is supported on fields other than semantic_text. However, if you
274295
want to restrict highlighting to the semantic highlighter and return no
275296
fragments when the field is not of type semantic_text, you can explicitly

docs/reference/elasticsearch/rest-apis/highlighting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ applies_to:
77

88
# Highlighting [highlighting]
99

10-
Highlighters enable you to get highlighted snippets from one or more fields in your search results so you can show users where the query matches are. When you request highlights, the response contains an additional `highlight` element for each search hit that includes the highlighted fields and the highlighted fragments.
10+
Highlighters enable you to retrieve the best-matching highlighted snippets from one or more fields in your search results so you can show users where the query matches are. When you request highlights, the response contains an additional `highlight` element for each search hit that includes the highlighted fields and the highlighted fragments.
1111

1212
::::{note}
1313
Highlighters don’t reflect the boolean logic of a query when extracting terms to highlight. Thus, for some complex boolean queries (e.g nested boolean queries, queries using `minimum_should_match` etc.), parts of documents may be highlighted that don’t correspond to query matches.

docs/reference/elasticsearch/rest-apis/reindex-indices.md

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ You can learn how to:
3535
- [Reindex with an ingest pipeline](#reindex-with-an-ingest-pipeline)
3636
- [Reindex from remote](#reindex-from-remote)
3737

38+
**Troubleshooting**
39+
- [Monitor reindex tasks](#monitor-reindex-tasks)
40+
- [Diagnose node failures](#diagnose-node-failures)
41+
- [Version conflicts](#version-conflicts)
42+
3843
## Basic reindexing example
3944

4045
Use the Reindex API to copy all documents from one index to another.
@@ -731,4 +736,50 @@ POST _reindex
731736
Reindex from remote supports configurable SSL settings.
732737
These must be specified in the `elasticsearch.yml` file, with the exception of the secure settings, which you add in the {{es}} keystore.
733738
It is not possible to configure SSL in the body of the reindex API request.
734-
Refer to [Reindex settings](/reference/elasticsearch/configuration-reference/index-management-settings.md#reindex-settings).
739+
Refer to [Reindex settings](/reference/elasticsearch/configuration-reference/index-management-settings.md#reindex-settings).
740+
741+
## Monitor reindex tasks [monitor-reindex-tasks]
742+
743+
When run asynchronously with `wait_for_completion=false`, a reindex task can be monitored with the task management API:
744+
```console
745+
GET _tasks/r1A2WoRbTwKZ516z6NEs5A:36619
746+
```
747+
% TEST[catch:missing]
748+
749+
To view all currently running reindex tasks:
750+
```console
751+
GET _tasks?actions=*reindex
752+
```
753+
754+
You can also cancel a running reindex task:
755+
```console
756+
POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel
757+
```
758+
759+
## Diagnose node failures [diagnose-node-failures]
760+
761+
Node crashes can sometimes be caused by insufficient disk space. To check disk allocation across your cluster:
762+
```console
763+
GET _cat/allocation?v
764+
```
765+
766+
## Version conflicts [version-conflicts]
767+
768+
By default, version conflicts abort the reindexing process.
769+
To continue reindexing in the case of conflicts, set `conflicts` to `proceed`.
770+
This may be necessary when retrying a failed reindex operation, as the destination index could be left in a partial state.
771+
772+
```console
773+
POST _reindex
774+
{
775+
"source": {
776+
"index": "my-index-000001"
777+
},
778+
"dest": {
779+
"index": "my-new-index-000001",
780+
"op_type": "create"
781+
},
782+
"conflicts": "proceed"
783+
}
784+
```
785+
% TEST[setup:my_index]

docs/reference/query-languages/esql/_snippets/functions/description/v_l2_norm.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.

0 commit comments

Comments
 (0)