Python
# conflicts='proceed' 防止调用次数过多导致409错误 版本冲突问题
result = es.delete_by_query(index=config_instance.get("es", "knowledge_index"), conflicts='proceed', body=query)
Java
deleteByQueryRequest.setAbortOnVersionConflict(false);
# conflicts='proceed' 防止调用次数过多导致409错误 版本冲突问题
result = es.delete_by_query(index=config_instance.get("es", "knowledge_index"), conflicts='proceed', body=query)
deleteByQueryRequest.setAbortOnVersionConflict(false);