diff --git a/app/models/search/indexer.rb b/app/models/search/indexer.rb index 90aaddb49f9..50e1299a999 100644 --- a/app/models/search/indexer.rb +++ b/app/models/search/indexer.rb @@ -21,7 +21,12 @@ def self.create_index index: index_name, type: document_type, body: { - mapping: mapping + settings: { + index: { + number_of_shards: 5 + } + }, + mappings: mapping } ) end