switch directory bloc to new es query engine