Skip to content

Commit 3a2df38

Browse files
authored
Merge branch 'main' into 2025/07/09/tls-handshake-timeout-setting
2 parents 39f6560 + 71434e6 commit 3a2df38

File tree

54 files changed

+2682
-2317
lines changed

Some content is hidden

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

54 files changed

+2682
-2317
lines changed

docs/changelog/130427.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 130427
2+
summary: Disallow brackets in unquoted index pattersn
3+
area: ES|QL
4+
type: bug
5+
issues: []

docs/reference/elasticsearch/mapping-reference/sparse-vector.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Parameters for `index_options` are:
8383
: (Optional, float) Tokens whose weight is less than `tokens_weight_threshold` are considered insignificant and pruned. This value must be between 0 and 1. Default: `0.4`.
8484

8585
::::{note}
86-
The default values for `tokens_freq_ratio_threshold` and `tokens_weight_threshold` were chosen based on tests using ELSERv2 that provided the most optimal results.
86+
The default values for `tokens_freq_ratio_threshold` and `tokens_weight_threshold` were chosen based on tests using ELSERv2 that provided the optimal results.
8787
::::
8888

8989
When token pruning is applied, non-significant tokens will be pruned from the query.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,8 +1200,8 @@ Note, however, that wildcard field patterns will only resolve to fields that eit
12001200
12011201
### Examples
12021202
1203-
<!-- - [RRF with the multi-field query format](docs-content://solutions/search/retrievers-examples.md#retrievers-examples-rrf-multi-field-query-format) -->
1204-
<!-- - [Linear retriever with the multi-field query format](docs-content://solutions/search/retrievers-examples.md#retrievers-examples-linear-multi-field-query-format) -->
1203+
- [RRF with the multi-field query format](docs-content://solutions/search/retrievers-examples.md#retrievers-examples-rrf-multi-field-query-format)
1204+
- [Linear retriever with the multi-field query format](docs-content://solutions/search/retrievers-examples.md#retrievers-examples-linear-multi-field-query-format)
12051205
12061206
## Common usage guidelines [retriever-common-parameters]
12071207

docs/reference/query-languages/query-dsl/query-dsl-sparse-vector-query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ GET _search
8080
: (Optional, boolean) If `true` we only input pruned tokens into scoring, and discard non-pruned tokens. It is strongly recommended to set this to `false` for the main query, but this can be set to `true` for a rescore query to get more relevant results. Default: `false`.
8181

8282
::::{note}
83-
The default values for `tokens_freq_ratio_threshold` and `tokens_weight_threshold` were chosen based on tests using ELSERv2 that provided the most optimal results.
83+
The default values for `tokens_freq_ratio_threshold` and `tokens_weight_threshold` were chosen based on tests using ELSERv2 that provided the optimal results.
8484
::::
8585

8686
When token pruning is applied, non-significant tokens will be pruned from the query.

docs/reference/query-languages/query-dsl/query-dsl-text-expansion-query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ GET _search
6969
: (Optional, boolean) [preview] If `true` we only input pruned tokens into scoring, and discard non-pruned tokens. It is strongly recommended to set this to `false` for the main query, but this can be set to `true` for a rescore query to get more relevant results. Default: `false`.
7070

7171
::::{note}
72-
The default values for `tokens_freq_ratio_threshold` and `tokens_weight_threshold` were chosen based on tests using ELSER that provided the most optimal results.
72+
The default values for `tokens_freq_ratio_threshold` and `tokens_weight_threshold` were chosen based on tests using ELSER that provided the optimal results.
7373
::::
7474

7575

docs/reference/query-languages/query-dsl/query-dsl-weighted-tokens-query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ POST _search
6666
: (Optional, boolean) If `true` we only input pruned tokens into scoring, and discard non-pruned tokens. It is strongly recommended to set this to `false` for the main query, but this can be set to `true` for a rescore query to get more relevant results. Default: `false`.
6767

6868
::::{note}
69-
The default values for `tokens_freq_ratio_threshold` and `tokens_weight_threshold` were chosen based on tests using ELSER that provided the most optimal results.
69+
The default values for `tokens_freq_ratio_threshold` and `tokens_weight_threshold` were chosen based on tests using ELSER that provided the optimal results.
7070
::::
7171

7272

modules/transport-netty4/src/main/java/org/elasticsearch/http/netty4/Netty4HttpServerTransport.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
import org.elasticsearch.http.netty4.internal.HttpHeadersAuthenticatorUtils;
5858
import org.elasticsearch.http.netty4.internal.HttpValidator;
5959
import org.elasticsearch.rest.ChunkedZipResponse;
60-
import org.elasticsearch.telemetry.tracing.Tracer;
60+
import org.elasticsearch.telemetry.TelemetryProvider;
6161
import org.elasticsearch.threadpool.ThreadPool;
6262
import org.elasticsearch.transport.netty4.AcceptChannelHandler;
6363
import org.elasticsearch.transport.netty4.NetUtils;
@@ -115,7 +115,7 @@ public Netty4HttpServerTransport(
115115
Dispatcher dispatcher,
116116
ClusterSettings clusterSettings,
117117
SharedGroupFactory sharedGroupFactory,
118-
Tracer tracer,
118+
TelemetryProvider telemetryProvider,
119119
TLSConfig tlsConfig,
120120
@Nullable AcceptChannelHandler.AcceptPredicate acceptChannelPredicate,
121121
@Nullable HttpValidator httpValidator
@@ -128,7 +128,7 @@ public Netty4HttpServerTransport(
128128
xContentRegistry,
129129
dispatcher,
130130
clusterSettings,
131-
tracer
131+
telemetryProvider
132132
);
133133
Netty4Utils.setAvailableProcessors(EsExecutors.allocatedProcessors(settings));
134134
NettyAllocator.logAllocatorDescriptionIfNeeded();
@@ -165,7 +165,7 @@ public Settings settings() {
165165
}
166166

167167
@Override
168-
protected void doStart() {
168+
protected void startInternal() {
169169
boolean success = false;
170170
try {
171171
sharedGroup = sharedGroupFactory.getHttpGroup();

modules/transport-netty4/src/main/java/org/elasticsearch/transport/netty4/Netty4Plugin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import org.elasticsearch.plugins.NetworkPlugin;
3131
import org.elasticsearch.plugins.Plugin;
3232
import org.elasticsearch.rest.RestRequest;
33-
import org.elasticsearch.telemetry.tracing.Tracer;
33+
import org.elasticsearch.telemetry.TelemetryProvider;
3434
import org.elasticsearch.threadpool.ThreadPool;
3535
import org.elasticsearch.transport.Transport;
3636
import org.elasticsearch.xcontent.NamedXContentRegistry;
@@ -184,7 +184,7 @@ public Map<String, Supplier<HttpServerTransport>> getHttpTransports(
184184
HttpServerTransport.Dispatcher dispatcher,
185185
BiConsumer<HttpPreRequest, ThreadContext> perRequestThreadContext,
186186
ClusterSettings clusterSettings,
187-
Tracer tracer
187+
TelemetryProvider telemetryProvider
188188
) {
189189
return Collections.singletonMap(
190190
NETTY_HTTP_TRANSPORT_NAME,
@@ -196,7 +196,7 @@ public Map<String, Supplier<HttpServerTransport>> getHttpTransports(
196196
dispatcher,
197197
clusterSettings,
198198
getSharedGroupFactory(settings),
199-
tracer,
199+
telemetryProvider,
200200
TLSConfig.noTLS(),
201201
null,
202202
null

modules/transport-netty4/src/test/java/org/elasticsearch/http/netty4/Netty4BadRequestTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import org.elasticsearch.rest.RestRequest;
2525
import org.elasticsearch.rest.RestResponse;
2626
import org.elasticsearch.rest.RestStatus;
27-
import org.elasticsearch.telemetry.tracing.Tracer;
27+
import org.elasticsearch.telemetry.TelemetryProvider;
2828
import org.elasticsearch.test.ESTestCase;
2929
import org.elasticsearch.threadpool.TestThreadPool;
3030
import org.elasticsearch.threadpool.ThreadPool;
@@ -86,7 +86,7 @@ public void dispatchBadRequest(RestChannel channel, ThreadContext threadContext,
8686
dispatcher,
8787
new ClusterSettings(Settings.EMPTY, ClusterSettings.BUILT_IN_CLUSTER_SETTINGS),
8888
new SharedGroupFactory(Settings.EMPTY),
89-
Tracer.NOOP,
89+
TelemetryProvider.NOOP,
9090
TLSConfig.noTLS(),
9191
null,
9292
randomFrom((httpPreRequest, channel, listener) -> listener.onResponse(null), null)

modules/transport-netty4/src/test/java/org/elasticsearch/http/netty4/Netty4HttpPipeliningHandlerTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
import org.elasticsearch.http.HttpResponse;
4747
import org.elasticsearch.rest.ChunkedRestResponseBodyPart;
4848
import org.elasticsearch.rest.RestStatus;
49-
import org.elasticsearch.telemetry.tracing.Tracer;
49+
import org.elasticsearch.telemetry.TelemetryProvider;
5050
import org.elasticsearch.test.ESTestCase;
5151
import org.elasticsearch.threadpool.TestThreadPool;
5252
import org.elasticsearch.threadpool.ThreadPool;
@@ -158,7 +158,7 @@ private Netty4HttpServerTransport httpServerTransport() {
158158
new AggregatingDispatcher(),
159159
ClusterSettings.createBuiltInClusterSettings(),
160160
new SharedGroupFactory(Settings.EMPTY),
161-
Tracer.NOOP,
161+
TelemetryProvider.NOOP,
162162
TLSConfig.noTLS(),
163163
null,
164164
null

0 commit comments

Comments
 (0)