Sha256: 0db1ee9f8d944d7044faf81a37be03e91c9629167f1305b1bc336709c04cd4a0

Contents?: true

Size: 762 Bytes

Versions: 5

Compression:

Stored size: 762 Bytes

Contents

Workarea.configure do |config|
  # Used to find irregular characters in product ids that can cause issues
  # with finding a document in elasticsearch when reindexing.
  config.search_index_id_escape_regex = %r{
    ( [-!\(\)\{\}\[\]^"~*?:\\\/]    # A special character
      | &&                          # Boolean &&
      | \|\|                        # Boolean ||
    )
  }x

  # Used to combine product_id and browse option value when storing
  # each option in featured products in the format of [ID][CONJUNCTION][OPTION]
  # i.e. 1018-5915--blue. Changing this after a category has featured a browse
  # option will not update the category automatically and will require a
  # reindex of products.
  config.browse_option_product_id_conjunction = '--'
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
workarea-browse_option-2.2.0 config/initializers/configuration.rb
workarea-browse_option-2.1.9 config/initializers/configuration.rb
workarea-browse_option-2.1.8 config/initializers/configuration.rb
workarea-browse_option-2.1.7 config/initializers/configuration.rb
workarea-browse_option-2.1.6 config/initializers/configuration.rb