java - spring boot 的弹性搜索查询
问题描述
我想将此查询放入 Spring Boot 存储库:
{
"query": {
"match_all": {}
},
"_source":
"data.results.id"
}
但我不知道怎么做。
@Repository
public interface HeroRepository extends ElasticsearchRepository<ES, String>{
@Query(????????????????????????????)
Iterable<ES> findAllId();
}
感谢您的帮助
解决方案
推荐阅读
- react-native - 为初学者学习 react-native?
- css - CSS网格显示一排4列或2行2列
- javascript - 如何以闪亮的方式以编程方式转到 HTML 锚点?
- excel - 浏览多个工作表时,注释语句不起作用
- azure-devops - 发布多个项目 - AzureDevOps
- azure - Azure Devops - 启用对 keyvault 的访问
- r - R中的选择性替换字符串
- javascript - 如何在jquery中使用它的id向td添加宽度
- sql - 带有 GROUP BY 的 SQL MIN() 选择其他列
- javascript - 如何在 Discord 中复制 ID 搜索功能?