Skip to content

Commit 5c33194

Browse files
Merge branch 'main' into date-nanos-implicit-casting-behind-snapshot
2 parents 033bf4a + 285b09e commit 5c33194

File tree

12 files changed

+697
-195
lines changed

12 files changed

+697
-195
lines changed

docs/changelog/122497.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 122497
2+
summary: Check if index patterns conform to valid format before validation
3+
area: CCS
4+
type: enhancement
5+
issues: []

docs/reference/elasticsearch/index-settings/slow-log.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ navigation_title: Slow log
88

99
The slow log records database searching and indexing events that have execution durations above specified thresholds. You can use these logs to investigate analyze or troubleshoot your cluster’s historical search and indexing performance.
1010

11-
Slow logs report task duration at the shard level for searches, and at the index level for indexing, but might not encompass the full task execution time observed on the client. For example, slow logs don’t surface HTTP network delays or the impact of [task queues](docs-content://troubleshoot/elasticsearch/task-queue-backlog.md).
11+
Slow logs report task duration at the shard level for searches, and at the index level for indexing, but might not encompass the full task execution time observed on the client. For example, slow logs don’t surface HTTP network delays or the impact of [task queues](docs-content://troubleshoot/elasticsearch/task-queue-backlog.md). For more information about the higher-level operations affecting response times, refer to [Reading and writing documents](docs-content://deploy-manage/distributed-architecture/reading-and-writing-documents.md).
1212

1313
Events that meet the specified threshold are emitted into [{{es}} logging](docs-content://deploy-manage/monitor/logging-configuration/update-elasticsearch-logging-levels.md) under the `fileset.name` of `slowlog`. These logs can be viewed in the following locations:
1414

modules/ingest-geoip/qa/multi-project/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ dependencies {
2222
tasks.withType(Test).configureEach {
2323
it.systemProperty "tests.multi_project.enabled", true
2424
}
25+
26+
// Exclude multi-project tests from release build
27+
tasks.named { it == "javaRestTest" || it == "yamlRestTest" }.configureEach {
28+
it.onlyIf("snapshot build") { buildParams.snapshotBuild }
29+
}

muted-tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,12 @@ tests:
564564
method: "builds distribution from branches via archives extractedAssemble [bwcDistVersion: 8.2.1, bwcProject: bugfix, expectedAssembleTaskName:
565565
extractedAssemble, #2]"
566566
issue: https://github.com/elastic/elasticsearch/issues/119871
567-
567+
- class: org.elasticsearch.xpack.inference.qa.mixed.CohereServiceMixedIT
568+
method: testRerank
569+
issue: https://github.com/elastic/elasticsearch/issues/130009
570+
- class: org.elasticsearch.xpack.inference.qa.mixed.CohereServiceMixedIT
571+
method: testCohereEmbeddings
572+
issue: https://github.com/elastic/elasticsearch/issues/130010
568573

569574
# Examples:
570575
#

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/IdentifierBuilder.java

Lines changed: 191 additions & 69 deletions
Large diffs are not rendered by default.

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/planner/EsPhysicalOperationProviders.java

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@
77

88
package org.elasticsearch.xpack.esql.planner;
99

10+
import org.apache.lucene.document.FieldType;
11+
import org.apache.lucene.index.DocValuesType;
12+
import org.apache.lucene.index.IndexOptions;
1013
import org.apache.lucene.index.LeafReaderContext;
1114
import org.apache.lucene.index.SortedSetDocValues;
1215
import org.apache.lucene.search.BooleanClause;
1316
import org.apache.lucene.search.BooleanQuery;
1417
import org.apache.lucene.search.IndexSearcher;
1518
import org.apache.lucene.search.Query;
1619
import org.elasticsearch.common.logging.HeaderWarning;
20+
import org.elasticsearch.common.lucene.Lucene;
1721
import org.elasticsearch.compute.aggregation.AggregatorMode;
1822
import org.elasticsearch.compute.aggregation.GroupingAggregator;
1923
import org.elasticsearch.compute.aggregation.blockhash.BlockHash;
@@ -76,7 +80,6 @@
7680
import java.io.IOException;
7781
import java.util.ArrayList;
7882
import java.util.List;
79-
import java.util.Map;
8083
import java.util.Optional;
8184
import java.util.Set;
8285
import java.util.function.Function;
@@ -177,6 +180,13 @@ private BlockLoader getBlockLoaderFor(int shardId, Attribute attr, MappedFieldTy
177180

178181
/** A hack to pretend an unmapped field still exists. */
179182
private static class DefaultShardContextForUnmappedField extends DefaultShardContext {
183+
private static final FieldType UNMAPPED_FIELD_TYPE = new FieldType(KeywordFieldMapper.Defaults.FIELD_TYPE);
184+
static {
185+
UNMAPPED_FIELD_TYPE.setDocValuesType(DocValuesType.NONE);
186+
UNMAPPED_FIELD_TYPE.setIndexOptions(IndexOptions.NONE);
187+
UNMAPPED_FIELD_TYPE.setStored(false);
188+
UNMAPPED_FIELD_TYPE.freeze();
189+
}
180190
private final KeywordEsField unmappedEsField;
181191

182192
DefaultShardContextForUnmappedField(DefaultShardContext ctx, PotentiallyUnmappedKeywordEsField unmappedEsField) {
@@ -187,9 +197,22 @@ private static class DefaultShardContextForUnmappedField extends DefaultShardCon
187197
@Override
188198
public @Nullable MappedFieldType fieldType(String name) {
189199
var superResult = super.fieldType(name);
190-
return superResult == null && name.equals(unmappedEsField.getName())
191-
? new KeywordFieldMapper.KeywordFieldType(name, false /* isIndexed */, false /* hasDocValues */, Map.of() /* meta */)
192-
: superResult;
200+
return superResult == null && name.equals(unmappedEsField.getName()) ? createUnmappedFieldType(name, this) : superResult;
201+
}
202+
203+
static MappedFieldType createUnmappedFieldType(String name, DefaultShardContext context) {
204+
var builder = new KeywordFieldMapper.Builder(name, context.ctx.indexVersionCreated());
205+
builder.docValues(false);
206+
builder.indexed(false);
207+
return new KeywordFieldMapper.KeywordFieldType(
208+
name,
209+
UNMAPPED_FIELD_TYPE,
210+
Lucene.KEYWORD_ANALYZER,
211+
Lucene.KEYWORD_ANALYZER,
212+
Lucene.KEYWORD_ANALYZER,
213+
builder,
214+
context.ctx.isSourceSynthetic()
215+
);
193216
}
194217
}
195218

0 commit comments

Comments
 (0)