mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
feat: Show Recent Searches
This commit is contained in:
@@ -71,7 +71,7 @@ def search(query):
|
||||
|
||||
ac = AutoCompleter(make_key(WEBSITE_ITEM_NAME_AUTOCOMPLETE), conn=red)
|
||||
client = Client(make_key(WEBSITE_ITEM_INDEX), conn=red)
|
||||
suggestions = ac.get_suggestions(query, num=10)
|
||||
suggestions = ac.get_suggestions(query, num=10, fuzzy=len(query) > 4)
|
||||
|
||||
# Build a query
|
||||
query_string = query
|
||||
|
||||
Reference in New Issue
Block a user