Added validation to re-index only appropriate type of content