Copied ElasticSearch example from TA demo and adapted it to the android
httpclient.