app/templates/collections.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class Collections
  include Templatable

  def body
    Jbuilder.encode do |json|
      json.index_patterns "*-#{I14y::APP_NAME}-collections-*"
      json.mappings do
        dynamic_templates(json)
      end
    end
  end

  def dynamic_templates(json)
    json.dynamic_templates do
      string_fields_template(json, "keyword")
    end
  end
end