简介 目录 评价 推荐
  • 慕宸 2021-11-02

    查询

        http:127.0.0.1:9200/get/bool/novel?params=

        GetResponse result =   this.client.PrepareGet("book","novel").get();

    0赞 · 0采集
  • qq_南方 2020-06-21
    @Autowired
    TransportClient transportClient;
    
    @GetMapping("/get/{index}/{type}/{id}")
    public Object get(@PathVariable String index, @PathVariable String type, @PathVariable String id) {
        GetResponse response = transportClient.prepareGet(index, type, id).get();
        return response.getSource();
    }

    使用Restful风格API接口,可以做通用查询接口。

    GET http://localhost:8080/es/book/novel/1

    截图
    0赞 · 0采集
  • 慕用1426806 2019-11-17

    查询接口开发

    截图
    0赞 · 0采集
  • widestar 2018-07-02

    利用TrancportClient来执行查询

    截图
    0赞 · 2采集
  • 慕勒6273157 2017-09-19
    接口开发
    截图
    0赞 · 1采集
数据加载中...
开始学习 免费