BAZYNGO-1108: allow specifying predicate to filter the set of resources
retrieved while rebuilding the index.