lib/valkyrie.rb in valkyrie-3.3.0 vs lib/valkyrie.rb in valkyrie-3.4.0
- old
+ new
@@ -95,10 +95,14 @@
def storage_adapter
Valkyrie::StorageAdapter.find(self[:storage_adapter].to_sym)
end
+ def index_tsim_only_threshold
+ self[:index_tsim_only_threshold].to_i
+ end
+
# @api public
#
# The returned anonymous method (e.g. responds to #call) has a signature of
# an unamed parameter that is a string. Calling the anonymous method should
# return a Valkyrie::Resource from which Valkyrie will map the persisted
@@ -116,10 +120,11 @@
private
def defaults
{
- resource_class_resolver: method(:default_resource_class_resolver)
+ resource_class_resolver: method(:default_resource_class_resolver),
+ index_tsim_only_threshold: 1000
}
end
# String constantize is a "by convention" factory. This works, but assumes
# the ruby class once used to persist is the model used to now reify.