Skip to content

Commit 6aaecaa

Browse files
committed
Merge branch 'main' into lucene_snapshot
2 parents 49646ec + 0a399b5 commit 6aaecaa

File tree

17 files changed

+127
-31
lines changed

17 files changed

+127
-31
lines changed

docs/changelog/114741.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 114741
2+
summary: Upgrade to Lucene 10
3+
area: Search
4+
type: upgrade
5+
issues: []

docs/reference/inference/delete-inference.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
[[delete-inference-api]]
33
=== Delete {infer} API
44

5-
experimental[]
6-
75
Deletes an {infer} endpoint.
86

97
IMPORTANT: The {infer} APIs enable you to use certain services, such as built-in {ml} models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face.

docs/reference/inference/get-inference.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
[[get-inference-api]]
33
=== Get {infer} API
44

5-
experimental[]
6-
75
Retrieves {infer} endpoint information.
86

97
IMPORTANT: The {infer} APIs enable you to use certain services, such as built-in {ml} models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face.

docs/reference/inference/inference-apis.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
[[inference-apis]]
33
== {infer-cap} APIs
44

5-
experimental[]
6-
75
IMPORTANT: The {infer} APIs enable you to use certain services, such as built-in
86
{ml} models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure,
97
Google AI Studio or Hugging Face. For built-in models and models uploaded

docs/reference/inference/post-inference.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
[[post-inference-api]]
33
=== Perform inference API
44

5-
experimental[]
6-
75
Performs an inference task on an input text by using an {infer} endpoint.
86

97
IMPORTANT: The {infer} APIs enable you to use certain services, such as built-in {ml} models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face.

docs/reference/inference/put-inference.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
[[put-inference-api]]
33
=== Create {infer} API
44

5-
experimental[]
6-
75
Creates an {infer} endpoint to perform an {infer} task.
86

97
[IMPORTANT]

docs/reference/inference/update-inference.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
[[update-inference-api]]
33
=== Update inference API
44

5-
experimental[]
6-
75
Updates an {infer} endpoint.
86

97
IMPORTANT: The {infer} APIs enable you to use certain services, such as built-in {ml} models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face.

docs/reference/mapping/types/semantic-text.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,4 +221,5 @@ Notice that both the `semantic_text` field and the source field are updated in t
221221
`semantic_text` field types have the following limitations:
222222

223223
* `semantic_text` fields are not currently supported as elements of <<nested,nested fields>>.
224+
* `semantic_text` fields can't currently be set as part of <<dynamic-templates>>.
224225
* `semantic_text` fields can't be defined as <<multi-fields,multi-fields>> of another field, nor can they contain other fields as multi-fields.

modules/lang-expression/src/main/java/org/elasticsearch/script/expression/ExpressionScriptEngine.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import org.apache.lucene.expressions.js.JavascriptCompiler;
1515
import org.apache.lucene.expressions.js.VariableContext;
1616
import org.apache.lucene.search.DoubleValuesSource;
17+
import org.elasticsearch.SpecialPermission;
1718
import org.elasticsearch.core.Nullable;
1819
import org.elasticsearch.index.fielddata.IndexFieldData;
1920
import org.elasticsearch.index.fielddata.IndexNumericFieldData;
@@ -153,6 +154,7 @@ public String getType() {
153154

154155
@Override
155156
public <T> T compile(String scriptName, String scriptSource, ScriptContext<T> context, Map<String, String> params) {
157+
SpecialPermission.check();
156158
Expression expr;
157159
try {
158160
// NOTE: validation is delayed to allow runtime vars, and we don't have access to per index stuff here

modules/repository-s3/src/test/java/org/elasticsearch/repositories/s3/S3BlobContainerRetriesTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,16 +586,16 @@ public void handle(HttpExchange exchange) throws IOException {
586586
),
587587
-1
588588
);
589+
exchange.getResponseBody().flush();
589590
} else if (randomBoolean()) {
590591
final var bytesSent = sendIncompleteContent(exchange, bytes);
591592
if (bytesSent < meaningfulProgressBytes) {
592593
failuresWithoutProgress += 1;
593-
} else {
594-
exchange.getResponseBody().flush();
595594
}
596595
} else {
597596
failuresWithoutProgress += 1;
598597
}
598+
exchange.getResponseBody().flush();
599599
exchange.close();
600600
}
601601
}
@@ -640,6 +640,7 @@ public void handle(HttpExchange exchange) throws IOException {
640640
failureCount += 1;
641641
Streams.readFully(exchange.getRequestBody());
642642
sendIncompleteContent(exchange, bytes);
643+
exchange.getResponseBody().flush();
643644
exchange.close();
644645
}
645646
}

0 commit comments

Comments
 (0)