@Override
  public TransportRequestOptions transportOptions(Settings settings) {
    return TransportRequestOptions.builder()
            .withType(TransportRequestOptions.Type.REG)
            .build();
  }
@ Override public TransportRequestOptions transportOptions ( Settings settings ) { return TransportRequestOptions . builder ( ) . withType ( TransportRequestOptions . Type . REG ) . build ( ) ; }
Set transport options specific to a terms by query request.
Enabling compression here does not really reduce data transfer, even increase it on the contrary.

@param settings node settings
@return the request options.