Skip to content
This repository
Browse code

Merge pull request #666 from caioariede/master

Fixes incorrect call to put_mapping on ElasticSearch backend
  • Loading branch information...
commit dfe79d5f4d22971ec452369fb2d1de9e92600916 2 parents 5e4996d + ff853d5
Jannis Leidel jezdez authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  haystack/backends/elasticsearch_backend.py
2  haystack/backends/elasticsearch_backend.py
@@ -123,7 +123,7 @@ def setup(self):
123 123 try:
124 124 # Make sure the index is there first.
125 125 self.conn.create_index(self.index_name, self.DEFAULT_SETTINGS)
126   - self.conn.put_mapping('modelresult', current_mapping, index=self.index_name)
  126 + self.conn.put_mapping(self.index_name, 'modelresult', current_mapping)
127 127 self.existing_mapping = current_mapping
128 128 except Exception:
129 129 if not self.silently_fail:

0 comments on commit dfe79d5

Please sign in to comment.
Something went wrong with that request. Please try again.