0

Does JEST Java client lib for elasticsearch support gzip (compression) for huge bulk operations? I'm uploading thousands of documents in one go.

Nkosi
  • 235,767
  • 35
  • 427
  • 472
musicsquad
  • 95
  • 1
  • 3
  • 9

1 Answers1

1

Yes, you need to do two things:

  1. set http.compression: true in your elasticsearch.yml configuration file and restart ES

  2. call setRequestCompressionEnabled(true) on your Jest client.

Val
  • 207,596
  • 13
  • 358
  • 360