Will probably use ElasticSearch Java API instead of HttpClient + JSON.