DeleteByQueryRequestBuilder in one



  • Can two disposal requests be matched using Java API? I'll try to make it that way.

    DeleteByQueryRequestBuilder requestBuilder = new DeleteByQueryRequestBuilder(client.getClient(), DeleteByQueryAction.INSTANCE)
        .setQuery(QueryBuilders.boolQuery().must(matchQuery("leftId", leftId())).must(matchQuery("rightId", rightId())))
        .setQuery(QueryBuilders.boolQuery().must(matchQuery("leftId", rightId())).must(matchQuery("rightId", leftId())));
    

    requestBuilder.get();

    But there's only one request, the last request.



  • No, you can't, there's one request in the pool that and that's the last one.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2