debug: add logging for '__get_suggest'

This commit is contained in:
jar3b 2020-02-19 00:41:08 +03:00
parent 63815b0871
commit 03d432cb25

View File

@ -65,6 +65,11 @@ class SphinxSearch:
word_len = len(word)
trigrammed_word = '"{}"/1'.format(trigram(word))
logging.log(word)
logging.log(rating_limit)
logging.log(count)
logging.log(trigrammed_word)
self.__configure(SphinxConfig.index_sugg, word_len)
result = self.client_sugg.Query(trigrammed_word, SphinxConfig.index_sugg)