[elastic-search] improvement at Index Resources test