module Jekyll::Algolia::Indexer

def self.set_settings(settings)

rubocop:disable Naming/AccessorMethodName
Will dispatch to the error handler if it fails

Public: Set new settings to an index
def self.set_settings(settings)
  index.set_settings!(settings)
rescue StandardError => error
  ErrorHandler.stop(error, settings: settings)
end