Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate feature to configure indexing for a property when defined in model #3863

Closed
hackartisan opened this issue Jun 27, 2019 · 1 comment · Fixed by #4022
Closed

Deprecate feature to configure indexing for a property when defined in model #3863

hackartisan opened this issue Jun 27, 2019 · 1 comment · Fixed by #4022
Assignees
Labels

Comments

@hackartisan
Copy link
Contributor

Descriptive summary

Instead people will need to write indexers that explicitly handle each property.

Rationale

Valkyrie models do not allow this type of configuration. Indexing this way is a blocker for removing active fedora dependency.

Related work

#3800

@no-reply
Copy link
Contributor

This is to deprecate the following index configuration style:

property :title, predicate: RDF::DC.title do |index|
  index.as :discoverable, :stored_searchable
end

in favor of:

class MyWork < ActiveFedora::Base
  self.indexer = MyWorkIndexer
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants