Sha256: d379c542194b0a007ebe8b16d26a352ee0f24ca329663759d1044daa537ae57d

Contents?: true

Size: 656 Bytes

Versions: 15

Compression:

Stored size: 656 Bytes

Contents

# frozen_string_literal: true
require 'active_fedora/base'
require 'active_fedora/version'

module Hyrax
  module RepositoryReindexer
    extend ActiveSupport::Concern

    module ClassMethods
      # overrides https://github.com/samvera/active_fedora/blob/master/lib/active_fedora/indexing.rb#L95-L125
      # see implementation details in adapters/nesting_index_adapter.rb#each_perservation_document_id_and_parent_ids
      def reindex_everything(*)
        Samvera::NestingIndexer.reindex_all!(extent: Hyrax::Adapters::NestingIndexAdapter::FULL_REINDEX)
      end
    end
  end
end

ActiveFedora::Base.module_eval { include Hyrax::RepositoryReindexer }

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
hyrax-3.6.0 app/indexers/hyrax/repository_reindexer.rb
hyrax-3.5.0 app/indexers/hyrax/repository_reindexer.rb
hyrax-3.4.2 app/indexers/hyrax/repository_reindexer.rb
hyrax-4.0.0.beta1 app/indexers/hyrax/repository_reindexer.rb
hyrax-3.4.1 app/indexers/hyrax/repository_reindexer.rb
hyrax-3.4.0 app/indexers/hyrax/repository_reindexer.rb
hyrax-3.3.0 app/indexers/hyrax/repository_reindexer.rb
hyrax-3.2.0 app/indexers/hyrax/repository_reindexer.rb
hyrax-3.1.0 app/indexers/hyrax/repository_reindexer.rb
hyrax-3.0.2 app/indexers/hyrax/repository_reindexer.rb
hyrax-3.0.1 app/indexers/hyrax/repository_reindexer.rb
hyrax-3.0.0 app/indexers/hyrax/repository_reindexer.rb
hyrax-3.0.0.pre.rc4 app/indexers/hyrax/repository_reindexer.rb
hyrax-3.0.0.pre.rc3 app/indexers/hyrax/repository_reindexer.rb
hyrax-3.0.0.pre.rc2 app/indexers/hyrax/repository_reindexer.rb