mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-08 21:22:12 +00:00
Upgrade to Elasticsearch 8.7.0.
Original Pull Request #2524 Closes #2523
This commit is contained in:
parent
dfc1be286c
commit
d597baccd3
2
pom.xml
2
pom.xml
@ -23,7 +23,7 @@
|
|||||||
<!-- version of the RestHighLevelClient -->
|
<!-- version of the RestHighLevelClient -->
|
||||||
<elasticsearch-rhlc>7.17.9</elasticsearch-rhlc>
|
<elasticsearch-rhlc>7.17.9</elasticsearch-rhlc>
|
||||||
<!-- version of the new ElasticsearchClient -->
|
<!-- version of the new ElasticsearchClient -->
|
||||||
<elasticsearch-java>8.6.2</elasticsearch-java>
|
<elasticsearch-java>8.7.0</elasticsearch-java>
|
||||||
|
|
||||||
<log4j>2.18.0</log4j>
|
<log4j>2.18.0</log4j>
|
||||||
<netty>4.1.65.Final</netty>
|
<netty>4.1.65.Final</netty>
|
||||||
|
@ -37,7 +37,7 @@ built and tested.
|
|||||||
[cols="^,^,^,^,^",options="header"]
|
[cols="^,^,^,^,^",options="header"]
|
||||||
|===
|
|===
|
||||||
| Spring Data Release Train | Spring Data Elasticsearch | Elasticsearch | Spring Framework | Spring Boot
|
| Spring Data Release Train | Spring Data Elasticsearch | Elasticsearch | Spring Framework | Spring Boot
|
||||||
| 2022.1 | 5.1.x | 8.6.2 | 6.0.x | 3.0.x
|
| 2022.1 | 5.1.x | 8.7.0 | 6.0.x | 3.0.x
|
||||||
| 2022.0 (Turing) | 5.0.x | 8.5.3 | 6.0.x | 3.0.x
|
| 2022.0 (Turing) | 5.0.x | 8.5.3 | 6.0.x | 3.0.x
|
||||||
| 2021.2 (Raj) | 4.4.x | 7.17.3 | 5.3.x | 2.7.x
|
| 2021.2 (Raj) | 4.4.x | 7.17.3 | 5.3.x | 2.7.x
|
||||||
| 2021.1 (Q) | 4.3.x | 7.15.2 | 5.3.x | 2.6.x
|
| 2021.1 (Q) | 4.3.x | 7.15.2 | 5.3.x | 2.6.x
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
[[new-features.5-1-0]]
|
[[new-features.5-1-0]]
|
||||||
== New in Spring Data Elasticsearch 5.1
|
== New in Spring Data Elasticsearch 5.1
|
||||||
|
|
||||||
* Upgrade to Elasticsearch 8.6.2
|
* Upgrade to Elasticsearch 8.7.0
|
||||||
|
|
||||||
[[new-features.5-0-0]]
|
[[new-features.5-0-0]]
|
||||||
== New in Spring Data Elasticsearch 5.0
|
== New in Spring Data Elasticsearch 5.0
|
||||||
|
@ -16,21 +16,10 @@
|
|||||||
package org.springframework.data.elasticsearch.client.elc;
|
package org.springframework.data.elasticsearch.client.elc;
|
||||||
|
|
||||||
import static org.springframework.data.elasticsearch.client.elc.TypeUtils.*;
|
import static org.springframework.data.elasticsearch.client.elc.TypeUtils.*;
|
||||||
import static org.springframework.util.CollectionUtils.*;
|
import static org.springframework.util.CollectionUtils.isEmpty;
|
||||||
|
|
||||||
import co.elastic.clients.elasticsearch._types.Conflicts;
|
import co.elastic.clients.elasticsearch._types.*;
|
||||||
import co.elastic.clients.elasticsearch._types.FieldValue;
|
import co.elastic.clients.elasticsearch._types.mapping.*;
|
||||||
import co.elastic.clients.elasticsearch._types.InlineScript;
|
|
||||||
import co.elastic.clients.elasticsearch._types.OpType;
|
|
||||||
import co.elastic.clients.elasticsearch._types.SortOptions;
|
|
||||||
import co.elastic.clients.elasticsearch._types.SortOrder;
|
|
||||||
import co.elastic.clients.elasticsearch._types.VersionType;
|
|
||||||
import co.elastic.clients.elasticsearch._types.WaitForActiveShardOptions;
|
|
||||||
import co.elastic.clients.elasticsearch._types.mapping.FieldType;
|
|
||||||
import co.elastic.clients.elasticsearch._types.mapping.Property;
|
|
||||||
import co.elastic.clients.elasticsearch._types.mapping.RuntimeField;
|
|
||||||
import co.elastic.clients.elasticsearch._types.mapping.RuntimeFieldType;
|
|
||||||
import co.elastic.clients.elasticsearch._types.mapping.TypeMapping;
|
|
||||||
import co.elastic.clients.elasticsearch._types.query_dsl.FieldAndFormat;
|
import co.elastic.clients.elasticsearch._types.query_dsl.FieldAndFormat;
|
||||||
import co.elastic.clients.elasticsearch._types.query_dsl.Like;
|
import co.elastic.clients.elasticsearch._types.query_dsl.Like;
|
||||||
import co.elastic.clients.elasticsearch.cluster.HealthRequest;
|
import co.elastic.clients.elasticsearch.cluster.HealthRequest;
|
||||||
@ -58,13 +47,7 @@ import java.io.ByteArrayOutputStream;
|
|||||||
import java.io.StringReader;
|
import java.io.StringReader;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.time.Duration;
|
import java.time.Duration;
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.Collections;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.LinkedHashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
@ -74,9 +57,7 @@ import org.springframework.data.elasticsearch.core.RefreshPolicy;
|
|||||||
import org.springframework.data.elasticsearch.core.ScriptType;
|
import org.springframework.data.elasticsearch.core.ScriptType;
|
||||||
import org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter;
|
import org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter;
|
||||||
import org.springframework.data.elasticsearch.core.document.Document;
|
import org.springframework.data.elasticsearch.core.document.Document;
|
||||||
import org.springframework.data.elasticsearch.core.index.AliasAction;
|
import org.springframework.data.elasticsearch.core.index.*;
|
||||||
import org.springframework.data.elasticsearch.core.index.AliasActionParameters;
|
|
||||||
import org.springframework.data.elasticsearch.core.index.AliasActions;
|
|
||||||
import org.springframework.data.elasticsearch.core.index.DeleteTemplateRequest;
|
import org.springframework.data.elasticsearch.core.index.DeleteTemplateRequest;
|
||||||
import org.springframework.data.elasticsearch.core.index.ExistsTemplateRequest;
|
import org.springframework.data.elasticsearch.core.index.ExistsTemplateRequest;
|
||||||
import org.springframework.data.elasticsearch.core.index.GetTemplateRequest;
|
import org.springframework.data.elasticsearch.core.index.GetTemplateRequest;
|
||||||
@ -1417,7 +1398,11 @@ class RequestConverter {
|
|||||||
.suggest(query.getSuggester()) //
|
.suggest(query.getSuggester()) //
|
||||||
.collapse(query.getFieldCollapse()) //
|
.collapse(query.getFieldCollapse()) //
|
||||||
.sort(query.getSortOptions()) //
|
.sort(query.getSortOptions()) //
|
||||||
.knn(query.getKnnQuery());
|
;
|
||||||
|
|
||||||
|
if (query.getKnnQuery() != null) {
|
||||||
|
builder.knn(query.getKnnQuery());
|
||||||
|
}
|
||||||
|
|
||||||
if (!isEmpty(query.getAggregations())) {
|
if (!isEmpty(query.getAggregations())) {
|
||||||
builder.aggregations(query.getAggregations());
|
builder.aggregations(query.getAggregations());
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
sde.testcontainers.image-name=docker.elastic.co/elasticsearch/elasticsearch
|
sde.testcontainers.image-name=docker.elastic.co/elasticsearch/elasticsearch
|
||||||
sde.testcontainers.image-version=8.6.2
|
sde.testcontainers.image-version=8.7.0
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# needed as we do a DELETE /* at the end of the tests, will be required from 8.0 on, produces a warning since 7.13
|
# needed as we do a DELETE /* at the end of the tests, will be required from 8.0 on, produces a warning since 7.13
|
||||||
|
Loading…
x
Reference in New Issue
Block a user