Sha256: 4773ecd7dca82a29eed04433ede603aeebfd40660470269ad28912deb85a70eb

Contents?: true

Size: 930 Bytes

Versions: 5

Compression:

Stored size: 930 Bytes

Contents

# frozen_string_literal: true

Esse.configure do |config|
  config.indices_directory = File.expand_path('../../app/indices', __FILE__)
  config.cluster(:default) do |cluster|
    # Default index prefix
    cluster.index_prefix = "esse"
    # you also can add environment to the index prefix if available:
    #   cluster.index_prefix = "esse_#{ENV['RACK_ENV']}"
    #
    # Initialize the ElastiSearch/OpenSearch client to be used by the default cluster
    # cluster.client = Elasticsearch::Client.new or OpenSearch::Client.new

    # Global index settings
    #   cluster.settings = {
    #     index: {
    #       number_of_shards: 5,
    #       number_of_replicas: 0,
    #     }
    #   }

    # Global index mappings
    #   cluster.mappings = {
    #     dynamic_templates: [
    #       # ... Dynamic templates ...
    #     ],
    #     properties: {
    #       # ... Explicit mapping
    #     },
    #   }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
esse-0.4.0.rc4 lib/esse/cli/templates/config.rb.erb
esse-0.4.0.rc3 lib/esse/cli/templates/config.rb.erb
esse-0.4.0.rc2 lib/esse/cli/templates/config.rb.erb
esse-0.4.0.rc1 lib/esse/cli/templates/config.rb.erb
esse-0.3.5 lib/esse/cli/templates/config.rb.erb