Permalink
Browse files

Merge pull request #666 from caioariede/master

Fixes incorrect call to put_mapping on ElasticSearch backend
  • Loading branch information...
2 parents 5e4996d + ff853d5 commit dfe79d5f4d22971ec452369fb2d1de9e92600916 @jezdez jezdez committed Nov 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 haystack/backends/elasticsearch_backend.py
@@ -123,7 +123,7 @@ def setup(self):
try:
# Make sure the index is there first.
self.conn.create_index(self.index_name, self.DEFAULT_SETTINGS)
- self.conn.put_mapping('modelresult', current_mapping, index=self.index_name)
+ self.conn.put_mapping(self.index_name, 'modelresult', current_mapping)
self.existing_mapping = current_mapping
except Exception:
if not self.silently_fail:

0 comments on commit dfe79d5

Please sign in to comment.