Skip to content

Commit 2a788ea

Browse files
committed
Merge branch '8.19' into datastreams-settings-and-mappings-overrides-8.19
2 parents 3e1948f + 0b179c3 commit 2a788ea

File tree

69 files changed

+1263
-400
lines changed

Some content is hidden

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

69 files changed

+1263
-400
lines changed

docs/changelog/127664.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 127664
2+
summary: Exclude `semantic_text` subfields from field capabilities API
3+
area: "Mapping"
4+
type: enhancement
5+
issues: []

docs/changelog/128504.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 128504
2+
summary: Add l2_norm normalization support to linear retriever
3+
area: Relevance
4+
type: enhancement
5+
issues: []

docs/changelog/128910.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 128910
2+
summary: Fix `FieldAttribute` name usage in `InferNonNullAggConstraint`
3+
area: ES|QL
4+
type: bug
5+
issues: []

docs/reference/esql/functions/description/std_dev.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/std_dev.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/kibana/definition/std_dev.json

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/kibana/docs/std_dev.md

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/search/search-your-data/retrievers-overview.asciidoc

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,40 @@ Returns top documents from a <<search-api-knn,knn search>>, in the context of a
2626
* <<linear-retriever,*Linear Retriever*>>.
2727
Combines the top results from multiple sub-retrievers using a weighted sum of their scores. Allows to specify different
2828
weights for each retriever, as well as independently normalize the scores from each result set.
29+
30+
[discrete]
31+
[[retrievers-overview-linear-retriever-parameters]]
32+
==== Linear Retriever Parameters
33+
34+
`retrievers`
35+
: (Required, array of objects)
36+
A list of the sub-retrievers' configuration, that we will take into account and whose result sets we will merge through a weighted sum. Each configuration can have a different weight and normalization depending on the specified retriever.
37+
38+
Each entry specifies the following parameters:
39+
40+
`retriever`
41+
: (Required, a `retriever` object)
42+
Specifies the retriever for which we will compute the top documents for. The retriever will produce `rank_window_size` results, which will later be merged based on the specified `weight` and `normalizer`.
43+
44+
`weight`
45+
: (Optional, float)
46+
The weight that each score of this retriever’s top docs will be multiplied with. Must be greater or equal to 0. Defaults to 1.0.
47+
48+
`normalizer`
49+
: (Optional, String)
50+
Specifies how we will normalize the retriever’s scores, before applying the specified `weight`. Available values are: `minmax`, `l2_norm`, and `none`. Defaults to `none`.
51+
52+
* `none`
53+
* `minmax` : A `MinMaxScoreNormalizer` that normalizes scores based on the following formula
54+
55+
```
56+
score = (score - min) / (max - min)
57+
```
58+
59+
* `l2_norm` : An `L2ScoreNormalizer` that normalizes scores using the L2 norm of the score values.
60+
61+
See also the hybrid search example for how to independently configure and apply normalizers to retrievers.
62+
2963
* <<rrf-retriever,*RRF Retriever*>>.
3064
Combines and ranks multiple first-stage retrievers using the reciprocal rank fusion (RRF) algorithm.
3165
Allows you to combine multiple result sets with different relevance indicators into a single result set.

server/src/main/java/org/elasticsearch/action/fieldcaps/FieldCapabilitiesFetcher.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
package org.elasticsearch.action.fieldcaps;
1111

12+
import org.elasticsearch.cluster.metadata.InferenceFieldMetadata;
1213
import org.elasticsearch.cluster.metadata.MappingMetadata;
1314
import org.elasticsearch.core.Booleans;
1415
import org.elasticsearch.core.Nullable;
@@ -30,6 +31,7 @@
3031
import org.elasticsearch.tasks.CancellableTask;
3132

3233
import java.io.IOException;
34+
import java.util.Collection;
3335
import java.util.Collections;
3436
import java.util.HashMap;
3537
import java.util.Map;
@@ -256,6 +258,14 @@ private static Predicate<MappedFieldType> buildFilter(String[] filters, String[]
256258
Set<String> acceptedTypes = Set.of(fieldTypes);
257259
fcf = ft -> acceptedTypes.contains(ft.familyTypeName());
258260
}
261+
262+
// Exclude internal ".inference" subfields of semantic_text fields from the field capabilities response
263+
Collection<InferenceFieldMetadata> inferenceFields = context.getMappingLookup().inferenceFields().values();
264+
for (InferenceFieldMetadata inferenceField : inferenceFields) {
265+
Predicate<MappedFieldType> next = ft -> ft.name().startsWith(inferenceField.getName() + ".inference") == false;
266+
fcf = fcf == null ? next : fcf.and(next);
267+
}
268+
259269
for (String filter : filters) {
260270
if ("parent".equals(filter) || "-parent".equals(filter)) {
261271
continue;

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/store/KibanaOwnedReservedRoleDescriptors.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ static RoleDescriptor kibanaSystem(String name) {
473473
"logs-tenable_sc.vulnerability-*",
474474
"logs-tenable_io.vulnerability-*",
475475
"logs-rapid7_insightvm.vulnerability-*",
476+
"logs-rapid7_insightvm.asset_vulnerability-*",
476477
"logs-carbon_black_cloud.asset_vulnerability_summary-*"
477478
)
478479
.privileges("read", "view_index_metadata")

0 commit comments

Comments
 (0)