Fix weird typesense search behavior

This commit is contained in:
Weves
2023-06-29 17:14:59 -07:00
committed by Chris Weaver
parent 858b0582aa
commit cb59e77278

View File

@@ -228,6 +228,11 @@ class TypesenseIndex(KeywordIndex):
"per_page": num_to_retrieve,
"limit_hits": num_to_retrieve,
"num_typos": 2,
"prefix": "false",
# below is required to allow proper partial matching of a query
# (partial matching = only some of the terms in the query match)
# more info here: https://typesense-community.slack.com/archives/C01P749MET0/p1688083239192799
"exhaustive_search": "true",
}
search_results = self.ts_client.collections[self.collection].documents.search(