debug: add logging for '__get_suggest'
This commit is contained in:
		| @@ -65,6 +65,11 @@ class SphinxSearch: | |||||||
|         word_len = len(word) |         word_len = len(word) | ||||||
|         trigrammed_word = '"{}"/1'.format(trigram(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) |         self.__configure(SphinxConfig.index_sugg, word_len) | ||||||
|         result = self.client_sugg.Query(trigrammed_word, SphinxConfig.index_sugg) |         result = self.client_sugg.Query(trigrammed_word, SphinxConfig.index_sugg) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user