lib/spotlight/engine.rb in blacklight-spotlight-3.0.0.rc3 vs lib/spotlight/engine.rb in blacklight-spotlight-3.0.0.rc4
- old
+ new
@@ -4,10 +4,11 @@
# devise must be required to first to ensure we can override devise and invitable views in spotlight correctly
require 'devise'
require 'devise_invitable'
+require 'activejob-status'
require 'blacklight'
require 'autoprefixer-rails'
require 'friendly_id'
require 'tophat'
require 'paper_trail'
@@ -98,11 +99,11 @@
'spotlight/resources/iiif/form'
]
config.external_resources_partials = []
config.solr_batch_size = 20
- Spotlight::Engine.config.reindex_progress_window = 10
+ Spotlight::Engine.config.reindex_progress_window = 1.hour
# Filter resources by exhibit by default
config.filter_resources_by_exhibit = true
# Should Spotlight write to solr? If set to false, Spotlight will not initiate indexing.
@@ -123,10 +124,11 @@
vocab: { suffix: '_ssim', facetable: true },
text: { suffix: '_tesim' }
}
config.resource_global_id_field = :"#{config.solr_fields.prefix}spotlight_resource_id#{config.solr_fields.string_suffix}"
+ config.job_tracker_id_field = :"#{config.solr_fields.prefix}spotlight_job_tracker_id#{config.solr_fields.string_suffix}"
# Set to nil if you don't want to pull thumbnails from the index
config.full_image_field = :full_image_url_ssm
config.thumbnail_field = :thumbnail_url_ssm
@@ -283,7 +285,12 @@
blacklight_configuration: true,
config: true,
pages: true,
resources: true
}
+
+ config.reindexing_batch_size = nil
+ config.reindexing_batch_count = nil
+
+ config.assign_default_roles_to_first_user = true
end
end