Added indexing to elasticsearch client
Added indexing to middleware