Skip to content

Commit bd0be0e

Browse files
committed
Merge remote-tracking branch 'origin/main' into ES-9767_update_metering_stats_endpoints
# Conflicts: # server/src/main/java/org/elasticsearch/TransportVersions.java
2 parents e4111fa + c35777a commit bd0be0e

File tree

75 files changed

+2189
-395
lines changed

Some content is hidden

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

75 files changed

+2189
-395
lines changed

.buildkite/scripts/dra-workflow.sh

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ find "$WORKSPACE" -type d -path "*/build/distributions" -exec chmod a+w {} \;
7575

7676
echo --- Running release-manager
7777

78-
set +e
7978
# Artifacts should be generated
8079
docker run --rm \
8180
--name release-manager \
@@ -92,16 +91,4 @@ docker run --rm \
9291
--version "$ES_VERSION" \
9392
--artifact-set main \
9493
--dependency "beats:https://artifacts-${WORKFLOW}.elastic.co/beats/${BEATS_BUILD_ID}/manifest-${ES_VERSION}${VERSION_SUFFIX}.json" \
95-
--dependency "ml-cpp:https://artifacts-${WORKFLOW}.elastic.co/ml-cpp/${ML_CPP_BUILD_ID}/manifest-${ES_VERSION}${VERSION_SUFFIX}.json" \
96-
2>&1 | tee release-manager.log
97-
EXIT_CODE=$?
98-
set -e
99-
100-
# This failure is just generating a ton of noise right now, so let's just ignore it
101-
# This should be removed once this issue has been fixed
102-
if grep "elasticsearch-ubi-9.0.0-SNAPSHOT-docker-image.tar.gz" release-manager.log; then
103-
echo "Ignoring error about missing ubi artifact"
104-
exit 0
105-
fi
106-
107-
exit "$EXIT_CODE"
94+
--dependency "ml-cpp:https://artifacts-${WORKFLOW}.elastic.co/ml-cpp/${ML_CPP_BUILD_ID}/manifest-${ES_VERSION}${VERSION_SUFFIX}.json"

build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/precommit/FormattingPrecommitPlugin.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
import org.gradle.api.Project;
1818

1919
import java.io.File;
20+
import java.util.Arrays;
21+
import java.util.Map;
2022

2123
/**
2224
* This plugin configures formatting for Java source using Spotless
@@ -64,7 +66,8 @@ public void apply(Project project) {
6466
java.importOrderFile(new File(elasticsearchWorkspace, importOrderPath));
6567

6668
// Most formatting is done through the Eclipse formatter
67-
java.eclipse().configFile(new File(elasticsearchWorkspace, formatterConfigPath));
69+
java.eclipse().withP2Mirrors(Map.of("https://download.eclipse.org/", "https://mirror.umd.edu/eclipse/"))
70+
.configFile(new File(elasticsearchWorkspace, formatterConfigPath));
6871

6972
// Ensure blank lines are actually empty. Since formatters are applied in
7073
// order, apply this one last, otherwise non-empty blank lines can creep

docs/changelog/111494.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 111494
2+
summary: Extensible Completion Postings Formats
3+
area: "Suggesters"
4+
type: enhancement
5+
issues: []

docs/changelog/113120.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 113120
2+
summary: ESQL - enabling scoring with METADATA `_score`
3+
area: ES|QL
4+
type: enhancement
5+
issues: []

docs/changelog/117235.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/changelog/117606.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 117606
2+
summary: Remove deprecated sort from reindex operation within dataframe analytics procedure
3+
area: Machine Learning
4+
type: enhancement
5+
issues: []

docs/changelog/117618.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 117618
2+
summary: SearchStatesIt failures reported by CI
3+
area: Search
4+
type: bug
5+
issues: [116617, 116618]

docs/changelog/117655.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 117655
2+
summary: Add nulls support to Categorize
3+
area: ES|QL
4+
type: enhancement
5+
issues: []

docs/reference/cluster/stats.asciidoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1644,7 +1644,10 @@ The API returns the following response:
16441644
"total_deduplicated_mapping_size": "0b",
16451645
"total_deduplicated_mapping_size_in_bytes": 0,
16461646
"field_types": [],
1647-
"runtime_field_types": []
1647+
"runtime_field_types": [],
1648+
"source_modes" : {
1649+
"stored": 0
1650+
}
16481651
},
16491652
"analysis": {
16501653
"char_filter_types": [],

docs/reference/quickstart/full-text-filtering-tutorial.asciidoc

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,9 @@ In this tutorial scenario it's useful for when users have complex requirements f
511511

512512
Let's create a query that addresses the following user needs:
513513

514-
* Must be a vegetarian main course
514+
* Must be a vegetarian recipe
515515
* Should contain "curry" or "spicy" in the title or description
516+
* Should be a main course
516517
* Must not be a dessert
517518
* Must have a rating of at least 4.5
518519
* Should prefer recipes published in the last month
@@ -524,16 +525,7 @@ GET /cooking_blog/_search
524525
"query": {
525526
"bool": {
526527
"must": [
527-
{
528-
"term": {
529-
"category.keyword": "Main Course"
530-
}
531-
},
532-
{
533-
"term": {
534-
"tags": "vegetarian"
535-
}
536-
},
528+
{ "term": { "tags": "vegetarian" } },
537529
{
538530
"range": {
539531
"rating": {
@@ -543,10 +535,18 @@ GET /cooking_blog/_search
543535
}
544536
],
545537
"should": [
538+
{
539+
"term": {
540+
"category": "Main Course"
541+
}
542+
},
546543
{
547544
"multi_match": {
548545
"query": "curry spicy",
549-
"fields": ["title^2", "description"]
546+
"fields": [
547+
"title^2",
548+
"description"
549+
]
550550
}
551551
},
552552
{
@@ -590,12 +590,12 @@ GET /cooking_blog/_search
590590
"value": 1,
591591
"relation": "eq"
592592
},
593-
"max_score": 7.9835095,
593+
"max_score": 7.444513,
594594
"hits": [
595595
{
596596
"_index": "cooking_blog",
597597
"_id": "2",
598-
"_score": 7.9835095,
598+
"_score": 7.444513,
599599
"_source": {
600600
"title": "Spicy Thai Green Curry: A Vegetarian Adventure", <1>
601601
"description": "Dive into the flavors of Thailand with this vibrant green curry. Packed with vegetables and aromatic herbs, this dish is both healthy and satisfying. Don't worry about the heat - you can easily adjust the spice level to your liking.", <2>
@@ -619,8 +619,8 @@ GET /cooking_blog/_search
619619
<1> The title contains "Spicy" and "Curry", matching our should condition. With the default <<type-best-fields,best_fields>> behavior, this field contributes most to the relevance score.
620620
<2> While the description also contains matching terms, only the best matching field's score is used by default.
621621
<3> The recipe was published within the last month, satisfying our recency preference.
622-
<4> The "Main Course" category matches our `must` condition.
623-
<5> The "vegetarian" tag satisfies another `must` condition, while "curry" and "spicy" tags align with our `should` preferences.
622+
<4> The "Main Course" category satisfies another `should` condition.
623+
<5> The "vegetarian" tag satisfies a `must` condition, while "curry" and "spicy" tags align with our `should` preferences.
624624
<6> The rating of 4.6 meets our minimum rating requirement of 4.5.
625625
==============
626626

0 commit comments

Comments
 (0)