spring-data-elasticsearch 相关问题

Spring Data可以更轻松地构建使用新数据访问技术的Spring驱动应用程序,例如非关系数据库,map-reduce框架和基于云的数据服务,以及为关系数据库技术提供改进的支持。

缺少必需的属性“Builder.<variant kind>”

nativeQueryBuilder.withQuery(queryBuilder -> queryBuilder.bool(boolBuilder -> boolBuilder.filter(filterBuilder -> { 如果(类别!= ...

回答 0 投票 0

“UncategorizedElasticsearchException”:[es/search] 失败:[x_content_parse_exception] [1:98] [bool] 无法解析字段 [should]

使用的版本: 弹簧数据弹性搜索 = 5.0.4 弹性搜索 = 8.5.3 弹簧引导 = 3.0.5 产品指标: @AllArgsConstructor @数据 @Document(indexName = "product", versionType = Document.

回答 0 投票 0

springboot 中映射的弹性搜索问题

使用的版本: 弹簧数据弹性搜索 = 5.0.1 弹性搜索 = 8.5.3 弹簧引导 = 3.0.5 ElasticProduct 文档类型: @Setting(settingPath = "product-settings.json") 公开课 ElasticPro...

回答 0 投票 0

Spring Boot AOP 切入点未触发

我将我的 spring boot 从 2.1 迁移到 2.3.12 并且还更新了 elasticsearch,现在我遇到一个问题,当方法 searchScrollStart 被触及时 @Pointcut 没有调用,有人知道吗? @A...

回答 0 投票 0

NativeSearchQuery 已弃用 5.0 之后的等价物是什么

什么是 org.springframework.data.elasticsearch.core.query.NativeSearchQuery 等价于 5.0 以上的支持。 从中迁移了以下代码段 NativeSearchQuery 查询 = 新

回答 2 投票 0

如何使用 OpenDistro 执行参数化 SQL

我们正在使用带有弹性搜索的 OpenDistro。在执行查询之前,它会以 DSL 格式进行编译和翻译。目前我们正在传递静态 SQL 查询,每个查询都在

回答 1 投票 0

ElasticSearch + Spring - 将附加到现有查询以进一步过滤结果的查询模板

我们有一个现有的“人”索引,其中包含“状态”字段。我们有几个(大约 6 个)现有查询,用于检索具有不同参数和逻辑的个人文档。

回答 0 投票 0

有什么办法可以得到一个ID所属的页面结果?不知道页码?

我有一个来自弹性搜索的 messageId。 只需要获取该 ID 所属的页面结果,而无需知道页码。 假设我有 4 页(每页 20 没有记录),并且消息...

回答 0 投票 0

Elastic Search First Query 总是很慢,分片没有得到正确分布

我正在 Elastic Search(版本:7.5.1)中创建每日索引。我总共有 3 个节点和 2 个分片,每个分片有一个副本,总磁盘:5.6 TB 和 JVM 堆:95.8 GB 每天索引大小为 40 GB

回答 0 投票 0

尝试在 java 中使用聚合,使用 ElasticsearchRepository 从 Elasticsearch 获取聚合数据。但是我的 aggs 总是空的

Java = 8 弹性搜索服务器 = 7.16.3 我的代码从不返回 aggregations 的值,我尝试了大多数组合。下面是代码,请看这里能不能帮到你 @存储库 公共利益...

回答 0 投票 0

更新现有索引的 Elasticsearch 映射

我在 Elastic 中有一个现有索引“my-index”。我试图在不丢失数据的情况下用新字段更新这个现有索引。 我还尝试用 .putMapping fu 更新现有索引...

回答 3 投票 0

通过预订号在弹性搜索中搜索数据

任何人告诉我我的代码实际上有什么问题 我在弹性搜索相关预订中保存数据 现在我想在弹性搜索中搜索彻底的预订号码。它返回错误的数据。它显示...

回答 1 投票 0

Spring Data ElasticSearch 是否可以从响应中获取“take”字段

当我从 elasticsearch 查询时,我得到了响应: { “采取”:16, “超时”:假的, “_碎片”:{ “总计”:1, “成功”:1, “sk...

回答 1 投票 0

ElasticsearchConfiguration nodename 或 servname 提供,或未知

Java:19 弹簧靴:3.0 依赖: org.springframework.data 弹簧数据弹性搜索 爪哇:19 Springboot:3.0 依赖性: <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-elasticsearch</artifactId> <version>5.0.2</version> </dependency> 配置 import org.springframework.context.annotation.Configuration; import org.springframework.data.elasticsearch.client.ClientConfiguration; import org.springframework.data.elasticsearch.client.elc.ElasticsearchConfiguration; import org.springframework.data.elasticsearch.support.HttpHeaders; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; @Configuration public class ElasticRestClientConfig extends ElasticsearchConfiguration { @Override public ClientConfiguration clientConfiguration() { HttpHeaders httpHeaders = new HttpHeaders(); httpHeaders.add("Accept", "application/json"); httpHeaders.add("Content-Type", "application/json"); return ClientConfiguration.builder().connectedTo("search-*****.ap-south-1.es.amazonaws.com:80") .usingSsl() .withPathPrefix("app") .withDefaultHeaders(httpHeaders) .withBasicAuth("", "") .withHeaders(() -> { HttpHeaders headers = new HttpHeaders(); headers.add("currentTime", LocalDateTime.now().format(DateTimeFormatter.ISO_LOCAL_DATE_TIME)); return headers; }) .withBasicAuth("", "") .build(); } 当我触发请求时它抛出异常 java.io.IOException: nodename nor servname provided, or not known

回答 0 投票 0

弹性搜索只对匹配的文档id进行汇总

我是elasticsearch的新手,我有两个文档,在我的文档中,它是exceptionId,当exceptionId为1时,它正确返回文档1的总和聚合,但如果我想......。

回答 1 投票 0

Elastic Spring Data OR Java High Level REST Client?

我是Elasticsearch和Spring的新手。我写了一个Javascript POC,它可以将JSON字符串转换为Elasticsearch查询(并执行请求)。它需要一个这样的字符串。{ "period"...

回答 1 投票 0

Spring数据JPA Elastic搜索和Mongo。

我有一个java类,其中@Document对象来自elasticsearch包 import org.springframework.data.elasticsearch.annotations.Document; @Data @AllArgsConstructor @Document(....

回答 1 投票 0

Spring数据弹性搜索 @Query @高亮显示

我不能用这个查询代码得到高亮的字段,有什么想法吗,我用的是SDE4.0.0.RC2,我想用@Query。@Query("{n" + " \"multi_match\": {\n" + " \"...

回答 1 投票 0

Spring boot elasticsearch返回空结果

我是来实现基本的弹性搜索功能的。我看了几个例子,但不知道哪里出了问题。应用程序构建得很好,但返回的结果是空的。让我...

回答 1 投票 2

index_not_found_exception, reason=no such index [Sugestao]]。- 如何将索引名传递给reactiveElasticsearchOperations.search。

我在这个问题中得到了错误的粘贴,这是真的:没有Sugestao索引。正确的名称是Sugestao(注意S与s)。据我所知,我不能创建一个上位索引 ...

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.