issue 2312: fixing rake clear_search_indice

work around elasticsearch bug