@ 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 .