elasticsearch中如下curl的请求怎么转化为java的写法
1个回答
展开全部
TermVectorRequestBuilder requestBuilder = client.prepareTermVector("mishu_index", "cert", "14").setSelectedFields("change");
TermVectorResponse response=requestBuilder.execute().actionGet();
XContentBuilder builder = XContentFactory.contentBuilder(XContentType.JSON).prettyPrint();
response.toXContent(builder, ToXContent.EMPTY_PARAMS);
TermVectorResponse response=requestBuilder.execute().actionGet();
XContentBuilder builder = XContentFactory.contentBuilder(XContentType.JSON).prettyPrint();
response.toXContent(builder, ToXContent.EMPTY_PARAMS);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询