From ab87444fccec3506b6936ea80dd251e11f128ee8 Mon Sep 17 00:00:00 2001 From: elz Date: Mon, 15 Sep 2014 09:48:01 -0400 Subject: [PATCH] Fix syntax on index creation --- app/models/search/indexer.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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