elastic search thread safe