Sha256: 26e33a1a2d1c94128efdfd61f652ade9b01acabf773828ab7cae47704c0e5acc
Contents?: true
Size: 895 Bytes
Versions: 10
Compression:
Stored size: 895 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 = { # 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
10 entries across 10 versions & 1 rubygems