Skip to content

Commit

Permalink
add :basic_metadata to generated work indexer
Browse files Browse the repository at this point in the history
when we generate valkyrie works with hyrax basic metadata, so we should also
generate the indexer with that schema loaded in.
  • Loading branch information
tom johnson committed Apr 28, 2020
1 parent 409d95d commit 48f7864
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Generated via
# `rails generate hyrax:work_resource <%= class_name %>`
class <%= class_name %>Indexer < Hyrax::ValkyrieWorkIndexer
Hyrax::ValkyrieIndexer.register self, as_indexer_for: <%= class_name %>
include Hyrax::Indexer(:basic_metadata)

# Uncomment this block if you want to add custom indexing behavior:
# def to_solr
Expand Down

0 comments on commit 48f7864

Please sign in to comment.