Add ES_PRESET option to customize numbers of shards and replicas (#26483)

Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
This commit is contained in:
ClaireandEugen Rochko authored and GitHub committed 2023-08-14 17:46:16 +02:00
1 parent c452ccd913
commit f5778caa3a
8 files changed
+35 -12

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
# frozen_string_literal: true
module Chewy
module SettingsExtensions
def enabled?
settings[:enabled]
end
end
end
Chewy.extend(Chewy::SettingsExtensions)