Skip to content

Commit

Permalink
Make object_id mandatory in save_synonym
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoErcolanelli committed Apr 11, 2016
1 parent 46457b0 commit 22ff0e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions algoliasearch/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,13 +543,13 @@ def browse_all(self, params=None):
"""
return IndexIterator(self, params=params)

def save_synonym(self, content, object_id='', forward_to_slaves=False):
def save_synonym(self, content, object_id, forward_to_slaves=False):
"""
Add a synonym in this index.
@param content contains the synonyms set to add to the index.
The object is represented by an associative array
@param object_id (optional) unique identifier for the new synonym.
@param object_id unique identifier for the new synonym.
If the identifier already exists, the old synonym is replaced
@param forward_to_slaves (optional) should the changes be forwarded to
slave indexes
Expand Down

0 comments on commit 22ff0e2

Please sign in to comment.