init for elastic-search