Method: Chewy::Config#initialize

Defined in:
lib/chewy/config.rb

#initializeConfig

Returns a new instance of Config.



56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/chewy/config.rb', line 56

def initialize
  @settings = {}
  @root_strategy = :base
  @request_strategy = :atomic
  @console_strategy = :urgent
  @use_after_commit_callbacks = true
  @reset_disable_refresh_interval = false
  @reset_no_replicas = false
  @disable_refresh_async = false
  @indices_path = 'app/chewy'
  @default_root_options = {}
  @default_field_type = 'text'.freeze
  @import_scope_cleanup_behavior = :warn
  @search_class = build_search_class(Chewy::Search::Request)
end