【发布时间】:2023-03-22 13:39:02
【问题描述】:
伙计们,
我想执行 - GET /_analyze 以使用 spring-data-elasticsearch
根据分析器进行标记化我在 spring-data-elasticsearch 中看到了 RequestConverters.analyze()。因此我能够做到以下几点
AnalyzeRequest analyzeRequest = AnalyzeRequest.withGlobalAnalyzer("stop", payload);
Request request = RequestConverters.analyze(analyzeRequest);
上面构建了一个请求,但是我如何使用上面的请求让 spring-data-elasticsearch 调用弹性搜索?
我检查了 ElasticsearchRestTemplate 甚至 RestHighLevelClient,但其中没有一个公共方法将 Request 作为参数。
非常感谢任何潜在客户。谢谢
【问题讨论】:
标签: spring spring-data spring-data-elasticsearch