博學(xué)谷人工智能AI進(jìn)階班
/將創(chuàng)建的對象放入文檔中
request.doc(JSONValue.toJSONString(user),XContentType.JSON);
UpdateResponse updateResponse=restHighLevelClient.update(request,RequestOptions.DEFAULT);
System.out.println(updateResponse.status());//更新成功返回OK}
標(biāo)簽: