开发者社区 问答 正文

springboot整合elasticsearch,语句怎么打印

本问题及下方已被采纳的回答均来自云栖社区【Redis&MongoDB 社区大群】。https://yq.aliyun.com/articles/690084 点击链接欢迎加入社区大社群。

展开
收起
李博 bluemind 2019-04-28 17:52:56 8226 分享 版权
2 条回答
写回答
取消 提交回答
  • 直接输出IndexRequest.toString(); 或者返回类型 IndexResponse.toString(); 就能看到dsl.

    2019-11-11 11:04:48
    赞同 展开评论
  • 1.阿里云大学荣誉讲师, 2.MongoDB中文社区专家

    直接使用Spring Data ES就行,返回List,逐条打印。

            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
        </dependency>
    2019-07-17 23:34:32
    赞同 展开评论