腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(4133)
视频
沙龙
1
回答
@
Document
indexName
中
与
spring
data
elasticsearch
和
spring
boot
一起
使用
的
SpEL
未被
解析
、
、
、
在参考以下内容时
使用
SpEL
inside @
Document
注释寻求帮助:
spring
-
data
-
elasticsearch
:3.2.3.RELEASE
和
spring
boot
2.2.1 RELEASE
使用
从我
的
application.properties
中
写入
的
属性(es.index-name)值派生
的
indexName
浏览 46
提问于2019-12-11
得票数 6
回答已采纳
1
回答
EL1057E:上下文中未注册bean
解析
器以
解析
对bean
的
访问
、
、
、
、
我一直在尝试用多个索引在
Elasticsearch
上写东西。目前我已经安装了
Spring
v5.2.3.RELEASE
和
Spring
Boot
v2.2.4.RELEASE。我找到了几种解决方案,允许
使用
Spring
的
SPEL
技术
使用
多个索引,但我不能让它工作。我也试过了 @
Document
(type = "_doc",
indexName
= "#{
浏览 16
提问于2020-03-12
得票数 1
1
回答
Spring
data
elasticsearch
:在POJO接口类上
使用
@
Document
注释不起作用
、
、
、
、
我正在将一个应用程序迁移到最新
的
spring
-
boot
版本(
使用
maven
spring
-
boot
-dependencies
和
2.5.4版)。我有一个名为Customer
的
接口,并且我有该接口
的
两个实现(BusinessCustomer、PrivateCustomer) 这三个类
的
注释如下: @
Document
(
indexName
= "customers(
ind
浏览 150
提问于2021-09-14
得票数 0
回答已采纳
3
回答
将springBoot
与
elasticsearch
2.x相结合
、
、
、
我尝试
使用
spring
boot
1.3.3来实现
与
elasticsearch
通信
的
项目。在网上搜索了很多次后,我发现
spring
-
boot
-starter-
data
-
elasticsearch
在我
的
例子
中
不是很好,因为它
使用
的
是
Elasticsearch
1.5,而我必须
使用
Elasticsear
浏览 2
提问于2016-03-28
得票数 3
7
回答
Spring
Data
Elasticsearch
中
的
滚动索引(动态索引名称)
、
我有一个用例,在这个用例
中
,我希望基于特定条件在单独
的
索引
中
为我
的
文档编制索引。例如,我希望将发票文档存储到一个部门名称带有后缀
的
索引
中
。@
Document
(
indexName
="store_{department}", indexStoreType="invoice") private String
浏览 1
提问于2014-06-21
得票数 23
3
回答
如何在Domain类
中
给出索引别名而不是
Spring
-dat-
elasticsearch
中
的
索引名
我目前
的
项目需要有一个
elasticsearch
索引,将滚动到monthly.Index名称将像
Indexname
-%{+YYYY.MM}。现在
的
问题是,我正在
使用
Spring
data
elasticsearch
与
elastic search进行通信,并在我
的
域类
中
为此执行crud operations.Currently,如下所示。@
Document
(
indexName
浏览 0
提问于2018-08-02
得票数 2
1
回答
Spring
数据3.0.5 MongoDB
和
ElasticSearch
域类混合注释
、
、
、
在1.5.9版本
中
,我们成功地在几个域类上
使用
了混合注释,例如:@org.springframework.
data
.
elasticsearch
.annotations.
Document
(
indexName
= "folder") public cla
浏览 1
提问于2018-03-15
得票数 1
1
回答
在
spring
数据文档标注中
使用
环境变量定义
elasticsearch
索引名称
、
、
我有一个
spring
-
boot
(v2.4.1) REST应用程序,它
使用
spring
-
data
-
elasticsearch
(v4.1.2)
和
ElasticSearch
client v7.9.3连接到我没有
spring
xml配置文件,所有的工作都是在注释或代码
中
完成
的
。 我想从环境属性
中
获取索引
的
名称。
与
ElasticSearch</
浏览 121
提问于2021-05-27
得票数 1
1
回答
如何在
spring
-
data
-
elasticsearch
中
创建索引后更新索引设置
、
我正在
使用
spring
-
data
-
elasticsearch
编写
spring
-
boot
应用程序。我有一个在
elasticsearch
中
自动创建索引
的
实体类。我期待像回调这样
的
东西来支持这一点。现在
使用
@
Document
创建索引 @
Document
(
indexName
= "products", shards = 1, vers
浏览 140
提问于2021-02-08
得票数 0
回答已采纳
1
回答
spring
-
data
-
elasticsearch
实体移除弃用类型
、
、
Elasticsearch
将在版本8
中
删除_type。我正在
使用
ElasticRepository开发一个
Spring
boot
微服务,所以我想设置实体以便不
使用
它。据我所知,如果您不在@
Document
中
隐式指定类型,它将采用小写
的
类名。如何指定不
使用
类型type = "_doc"?弹性搜索: 7.5.1
Spring
boot
: 2.2.1 package
浏览 35
提问于2020-03-05
得票数 0
回答已采纳
1
回答
在春季启动时不能
使用
ElasticsearchRepository
、
、
、
我试图将ElasticsearchRepository用于简单
的
CRUD操作。我不想
使用
RestHighLevelClient。我遵循
的
是第一方法。这是我
的
遗属
和
Application.properties
中
<
浏览 9
提问于2021-11-07
得票数 1
1
回答
spring
boot
1.5.1
和
elasticsearch
5.4
、
、
、
我有一个
Spring
boot
1.5.1应用程序
和
live
elasticsearch
5.4,我不能将它降级到2.4.5左右,所以
spring
data
只支持2.x.x版本
的
Elasticsearch
什么是让
spring
boot
与
远程
Elasticsearch
和
out
spring
-
data
一起
工作<em
浏览 0
提问于2017-05-30
得票数 3
2
回答
用MySQL DB实现
spring
-
data
-
elasticsearch
、
、
、
、
我想问一下,是否可以将
spring
-
data
-
elasticsearch
与
Mysql数据库结合
使用
。例如,项目的存储将与以下流
一起
使用
: elastic-search <==>
spring
-
data
<==> Mysql数据库
浏览 1
提问于2015-05-09
得票数 2
2
回答
@CreatedDate注释不适用于
spring
-
data
-
elasticsearch
、
、
我
使用
spring
-
boot
-
data
-
elasticsearch
将文档持久化到
elasticsearch
中
。@
Document
(
indexName
= "testidx", createIndex = false) @Id
浏览 2
提问于2021-04-23
得票数 1
回答已采纳
1
回答
Spring
和
Elasticsearch
: NoReachableHostException: Host 'localhost/<unresolved>:9200‘不可达
、
我有一个非常简单
的
用例,我只想
使用
Spring
(2.5.2)将文档放入
elasticsearch
索引
中
。它似乎只是加载
elasticsearch
的
默认主机
和
端口,但我不知道为什么。我试过把房子搬来搬去。我尝试过不
使用
存储库,而只是
使用
RestHighLevelClient。我正在
使用
spring
-
boot
-starter
data
-
el
浏览 9
提问于2021-12-07
得票数 3
1
回答
使用
mongo @DBRef
的
弹簧弹性搜索java.lang.UnsupportedOperationException
、
、
、
我有一个
spring
引导应用程序,我想同时
使用
MongoRepositories
和
ElasticsearchRepositories
中
的
文档。一旦我在@
Document
中
使用
了来自mongoDb
的
@DBRef注释,在应用程序启动期间就不能再创建
ElasticSearch
存储库了,我得到了错误:import org.springframework.<em
浏览 3
提问于2021-07-15
得票数 0
1
回答
Spring
Data
Elasticsearch
中
的
自定义GeoPoint对象
、
、
、
、
使用
spring
boot
2.3.4。有没有办法用定制
的
GeoPoint对象代替org.springframework.
data
.
elasticsearch
.core.geo.GeoPoint? 如果是这样,如何覆盖映射?@
Document
(
indexName
="myIndex") @GeoPointField private MyPositionDocument
浏览 56
提问于2020-10-27
得票数 0
回答已采纳
2
回答
Elasticsearch
5.x仓库Java
Spring
Boot
、
、
、
、
我想
使用
带有Java
的
弹性搜索库: <artifactId>
spring
-
data
-
elasticsearch
</artifactId> <version>3.0.0.BUILD-SNAPSHOT<//autoconfigure
浏览 12
提问于2017-07-06
得票数 0
回答已采纳
1
回答
使用
ElasticSearch
启动
Spring
引导应用程序时出错
、
、
我想在
Spring
数据中
使用
ElasticSearch
。我正在
使用
Spring
5、
Spring
2
和
ElasticSearch
7.4。<groupId>org.springframework.
boot
</groupId> <artifactId>
spring
-
boot
-starter-
data
-
elastics
浏览 2
提问于2020-02-11
得票数 0
回答已采纳
2
回答
考虑在配置
中
定义一个名为“elasticsearchTemplate”
的
bean
、
、
、
、
我刚刚开始执行springboot,并尝试
使用
spring
-
boot
实现弹性搜索,但是在运行
spring
-
boot
应用程序时,我遇到了这类错误。考虑在配置
中
定义一个名为“elasticsearchTemplate”
的
bean。> &
浏览 1
提问于2019-06-07
得票数 6
点击加载更多
相关
资讯
SpringBoot集成Elasticsearch实战
那些年,我写过的 Spring Boot 系列……
Spring Data Commons与spring-messaging模块远程代码执行
深入理解SpringCloud微服务架构
Spring Boot与Kotlin 使用Redis数据库
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
云直播
活动推荐
运营活动
广告
关闭
领券