当前位置:   article > 正文

ES deleteByQuery java 清空当前索引全部内容 6.x+_deletebyqueryrequest.setabortonversionconflict(fal

deletebyqueryrequest.setabortonversionconflict(false);
  1. DeleteByQueryRequestBuilder deleteByQueryRequestBuilder = DeleteByQueryAction.INSTANCE.newRequestBuilder(transportClient);
  2. deleteByQueryRequestBuilder.abortOnVersionConflict(false);
  3. deleteByQueryRequestBuilder.filter(QueryBuilders.matchAllQuery());
  4. deleteByQueryRequestBuilder.source(indexName);
  5. deleteByQueryRequestBuilder.get();

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/68800
推荐阅读
相关标签
  

闽ICP备14008679号