Skip to content

Commit

Permalink
Fix syntax on index creation
Browse files Browse the repository at this point in the history
  • Loading branch information
elzj committed Sep 15, 2014
1 parent ae0ea64 commit ab87444
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/models/search/indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab87444

Please sign in to comment.