maybe we should use the termindex like in SearchEntities::searchEntities ?