spring-data-elasticsearch

spring-data-elasticsearch

文章 5 浏览 13

从春季data-elasticsearch升级为4.2.1到4.3.0后,相同文档的不同分数不同

我目前正在升级项目的春季启动版本。从2.5升级到2.6后,一些测试开始失败,这涉及Elasticsearch文档的检索。我试图仅获取最高得分文件,但是当期望2个…

A君 2025-02-10 15:37:13 1 0

无法使用Spring Boot应用程序创建索引或与AWS开放搜索进行通信

我想将AWS弹性搜索(打开搜索)与我的Spring Boot应用程序集成在一起。 For this, I followed the tutorial at https://medium.com/@prasanth_rajendr…

岁月蹉跎了容颜 2025-02-09 11:31:06 0 0

在弹簧数据弹性搜索中进行挑选时,如何忽略零字段

我保存了两个对象。 @Document(indexName = "test_index", createIndex = false) public class ZTest { @Id private String id; private String testO…

别把无礼当个性 2025-02-09 03:01:21 0 0

Elasticsearch:如何在copy_to字段中搜索多个单词?

我目前正在学习Elasticsearch,并在下面描述的问题上陷入困境: 在现有索引上(我不知道是否重要),我添加了此新映射: PUT user-index { "mappings"…

ら栖息 2025-02-06 09:19:04 1 0

春季数据Elasticsearch-如何获取字段映射

想知道如何使用Spring Data Elasticsearch库在Java中执行此操作。 GET /my-index-000001/_mapping/field/user …

十秒萌定你 2025-02-06 07:44:48 0 0

beaninstantiationException无法实例化org.springframework.data.elasticsearch.repository.support.simpleelasticsearchrepository

在将Spring Boot版本从2.4.2升级到2.6.8之后获得问题。当启动服务器以下时,出现错误: 14:38:38:38:38:38:38:38:38:38:jboss.msc.msc.serv…

命比纸薄 2025-02-04 07:25:36 2 0

如何使用Swagger API调用(Spring Data Elasticsearch)获取Elasticsearch数据聚合

我是Spring Data Elasticsearch的新手。我希望能够返回从Elasticsearch到前端的数据聚合(简单地,对字段的“真实”计数)。 这是我的Elasticsearch查…

趁微风不噪 2025-02-03 21:17:46 1 0

如何仅在弹簧数据弹性搜索中使用别名

春季数据搜索版本为4.1.15。我将实体类定义为下面,并使用lasticsearchRepository进行crud和弹性搜索,以进行自定义查询。 @document(indexName =“ …

欢你一世 2025-02-01 19:46:21 2 0

如何将索引名称作为我们同一类的任何变量名称

我正在使用sprinf数据JPA弹性搜索,每当我用findbyId()获取数据时,或者每次eLasticsearch索引的名称都可能是不同的 @Document(indexName = "sample…

蒗幽 2025-02-01 09:25:31 2 0

弹簧数据弹性搜索可以连接到连接到弹性搜索的代理REST服务吗?

我的公司在其余端点 /搜索和 /计数后面有弹性搜索,但它隐藏了访问的群集节点。 我可以通过本机DSL查询来调用这些休息端点,但是我不想创建许多用于创…

青春如此纠结 2025-01-31 22:36:10 3 0

如何冲洗数据到弹簧数据弹性搜索

我运行此测试箱 Envelope envelope = new Envelope(); envelope.setId("1"); Envelope saved = envelopeRepository.save(envelope); assertThat(saved…

紙鸢 2025-01-31 07:25:43 3 0

POJO列表中的弹性搜索结果

目前,我将弹性搜索命中率映射到POJO,然后重申其保存在列表中。 List contentList = new ArrayList<>(); final BoolQueryBuilder qb = QueryBuilders…

我不吻晚风 2025-01-30 23:54:43 5 0

nosuchmethoderror:org.springframework.data.elasticsearch.core.mapping.mapping.elasticsearchpersistentity.getInstancecreatMetAdata()&#x27;

我正在使用“ Spring-Data-elasticsearch”,但是 在Spring Data Elasticsearch中使用 FindbyId(id)时,遇到以下错误。 注意:保存/更新正常。 有人…

冬天旳寂寞 2025-01-30 14:02:10 3 0

如何使用Spring-Data-Elasticsearch在ES中实现索引翻转属性/条件

使用Spring-Data-elasticsearch时,如何在弹性搜索中添加以下属性值? 您想将新索引的最大尺寸或年龄。 索引不再更新并可以减少主碎片的数量的点。 何…

终陌 2025-01-29 14:52:48 2 0

春季数据Elasticsearch:classcastException在内部*存储库方法中投掷

我在ES中有这个微不足道的索引: { "dynamic": "strict", "properties": { "_class": { "type": "text", "fields": { "keyword": { "type": "keyword"…

鹊巢 2025-01-28 13:33:26 3 0
更多

推荐作者

李珊平

文章 0 评论 0

Quxin

文章 0 评论 0

范无咎

文章 0 评论 0

github_ZOJ2N8YxBm

文章 0 评论 0

若言

文章 0 评论 0

南…巷孤猫

文章 0 评论 0

更多

友情链接

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文