-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the valkyrie index adapter configurable
Add configuration for the indexing adapter to make access consistent with other valkyrie adapters. The one-true-way to access the indexing adapter is now `Hyrax.indexing_adapter`. We'll likely only really support the Solr indexing adapter (or things that very closely conform to its behavior) for the forseeable future.
- Loading branch information
Tom Johnson
committed
Nov 6, 2019
1 parent
aabf50a
commit 6b47ade
Showing
4 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# frozen_string_literal: true | ||
RSpec.configure do |config| | ||
config.before(:each, clean_index: true) do | ||
client = Valkyrie::IndexingAdapter.find(:solr_index).connection | ||
client = Hyrax.index_adapter.connection | ||
client.delete_by_query("*:*", params: { softCommit: true }) | ||
end | ||
end |