Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding autoboost api to the search_json shortcut

  • Loading branch information...
commit adffb23199c69e5d240c7a8092e3c282b81c17c9 1 parent e35ed6b
@coleifer authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 redis_completion/engine.py
View
4 redis_completion/engine.py
@@ -221,8 +221,8 @@ def search(self, phrase, limit=None, filters=None, mappers=None, boosts=None, au
id_list = self.client.zrange(new_key, 0, -1)
return self._process_ids(id_list, limit, filters, mappers)
- def search_json(self, phrase, limit=None, filters=None, mappers=None, boosts=None):
+ def search_json(self, phrase, limit=None, filters=None, mappers=None, boosts=None, autoboost=False):
if not mappers:
mappers = []
mappers.insert(0, json.loads)
- return self.search(phrase, limit, filters, mappers, boosts)
+ return self.search(phrase, limit, filters, mappers, boosts, autoboost)
Please sign in to comment.
Something went wrong with that request. Please try again.