Skip to content

Commit 7716906

Browse files
Merge branch 'main' into ES-11454
2 parents ca749ab + baf4f2f commit 7716906

File tree

9 files changed

+28
-34
lines changed

9 files changed

+28
-34
lines changed

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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();

server/src/main/java/org/elasticsearch/http/AbstractHttpServerTransport.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,13 @@ private TransportAddress bindAddress(final InetAddress hostAddress) {
235235

236236
protected abstract HttpServerChannel bind(InetSocketAddress hostAddress) throws Exception;
237237

238+
@Override
239+
protected final void doStart() {
240+
startInternal();
241+
}
242+
243+
protected abstract void startInternal();
244+
238245
/**
239246
* Gracefully shut down. If {@link HttpTransportSettings#SETTING_HTTP_SERVER_SHUTDOWN_GRACE_PERIOD} is zero, the default, then
240247
* forcefully close all open connections immediately.
@@ -251,7 +258,7 @@ private TransportAddress bindAddress(final InetAddress hostAddress) {
251258
* </ol>
252259
*/
253260
@Override
254-
protected void doStop() {
261+
protected final void doStop() {
255262
synchronized (httpServerChannels) {
256263
if (httpServerChannels.isEmpty() == false) {
257264
try {

server/src/test/java/org/elasticsearch/http/AbstractHttpServerTransportTests.java

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,10 @@ protected HttpServerChannel bind(InetSocketAddress hostAddress) {
211211
}
212212

213213
@Override
214-
protected void doStart() {
215-
216-
}
214+
protected void startInternal() {}
217215

218216
@Override
219-
protected void stopInternal() {
220-
221-
}
217+
protected void stopInternal() {}
222218

223219
@Override
224220
public HttpStats stats() {
@@ -295,14 +291,10 @@ protected HttpServerChannel bind(InetSocketAddress hostAddress) {
295291
}
296292

297293
@Override
298-
protected void doStart() {
299-
300-
}
294+
protected void startInternal() {}
301295

302296
@Override
303-
protected void stopInternal() {
304-
305-
}
297+
protected void stopInternal() {}
306298

307299
@Override
308300
public HttpStats stats() {
@@ -385,7 +377,7 @@ protected HttpServerChannel bind(InetSocketAddress hostAddress) {
385377
}
386378

387379
@Override
388-
protected void doStart() {}
380+
protected void startInternal() {}
389381

390382
@Override
391383
protected void stopInternal() {}
@@ -516,7 +508,7 @@ protected HttpServerChannel bind(InetSocketAddress hostAddress) {
516508
}
517509

518510
@Override
519-
protected void doStart() {}
511+
protected void startInternal() {}
520512

521513
@Override
522514
protected void stopInternal() {}
@@ -567,9 +559,7 @@ protected HttpServerChannel bind(InetSocketAddress hostAddress) {
567559
}
568560

569561
@Override
570-
protected void doStart() {
571-
572-
}
562+
protected void startInternal() {}
573563

574564
@Override
575565
protected void stopInternal() {
@@ -710,14 +700,10 @@ protected HttpServerChannel bind(InetSocketAddress hostAddress) {
710700
}
711701

712702
@Override
713-
protected void doStart() {
714-
715-
}
703+
protected void startInternal() {}
716704

717705
@Override
718-
protected void stopInternal() {
719-
720-
}
706+
protected void stopInternal() {}
721707

722708
@Override
723709
public HttpStats stats() {
@@ -774,7 +760,7 @@ protected HttpServerChannel bind(InetSocketAddress hostAddress) {
774760
}
775761

776762
@Override
777-
protected void doStart() {}
763+
protected void startInternal() {}
778764

779765
@Override
780766
protected void stopInternal() {}
@@ -856,7 +842,7 @@ protected HttpServerChannel bind(InetSocketAddress hostAddress) {
856842
}
857843

858844
@Override
859-
protected void doStart() {}
845+
protected void startInternal() {}
860846

861847
@Override
862848
protected void stopInternal() {}
@@ -1226,7 +1212,7 @@ protected HttpServerChannel bind(InetSocketAddress hostAddress) {
12261212
}
12271213

12281214
@Override
1229-
protected void doStart() {
1215+
protected void startInternal() {
12301216
bindServer();
12311217
}
12321218

x-pack/rest-resources-zip/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ dependencies {
2929
platinumTests project(path: ':x-pack:plugin:eql:qa:rest', configuration: 'restXpackTests')
3030
platinumTests project(path: ':x-pack:plugin:ent-search', configuration: 'restXpackTests')
3131
platinumTests project(path: ':x-pack:plugin:inference', configuration: 'restXpackTests')
32+
platinumTests project(path: ':x-pack:plugin:watcher:qa:rest', configuration: 'restXpackTests')
3233
platinumCompatTests project(path: ':x-pack:plugin', configuration: 'restCompatTests')
3334
platinumCompatTests project(path: ':x-pack:plugin:eql:qa:rest', configuration: 'restCompatTests')
3435
}

0 commit comments

Comments
 (0)