Adds timeout value to elasticsearch