app/models/data_object.rb
# NOTE this is expensive, so don't call this on large collections of data objects:
NOTE this is expensive, so don't call this on large collections of data objects.
NOTE this is expensive so don ' t call this on large collections of data objects .
def reindex
    reload
    update_solr_index
    data_object_taxa(published: true).map(&:taxon_concept).each { |tc| tc.reindex if tc }
  end
def reindex reload update_solr_index data_object_taxa ( published : true ) . map ( & :taxon_concept ) . each { | tc | tc . reindex if tc } end
NOTE this is expensive, so don't call this on large collections of data objects:
NOTE this is expensive so don ' t call this on large collections of data objects :