Skip to content

Commit

Permalink
Merge pull request #19 from matthewdu/fix-index-creation
Browse files Browse the repository at this point in the history
Use PUT instead of POST
  • Loading branch information
allizad authored Nov 10, 2016
2 parents e236c54 + b905d73 commit 0d34bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/searchyll/indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def http_start(&block)

# Prepare our indexing run by creating a new index.
def prepare_index
create_index = http_post("/#{elasticsearch_index_name}")
create_index = http_put("/#{elasticsearch_index_name}")
create_index.body = {
index: {
number_of_shards: configuration.elasticsearch_number_of_shards,
Expand Down

0 comments on commit 0d34bb9

Please sign in to comment.