Skip to content

Commit

Permalink
fix(HelpdeskSearch): Add synonym in redis correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
balamurali27 committed Sep 17, 2024
1 parent 2ac7c61 commit e7de95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpdesk/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def add_synonyms(self):
for word, synonym in frappe.get_all(
"HD Synonym", ["parent", "name"], as_list=True
):
self.redis.ft(self.index_name).synupdate(word, True, synonym)
self.redis.ft(self.index_name).synupdate(word, True, word, synonym)

def add_document(self, id, doc):
doc = frappe._dict(doc)
Expand Down

0 comments on commit e7de95d

Please sign in to comment.