Use the disableOnAttributes parameter on the facet-search route

This commit is contained in:
Clément Renault 2023-04-27 17:01:18 +02:00 committed by Louis Dureuil
parent 2ceb781c73
commit f35ad96afa
No known key found for this signature in database

View File

@ -293,7 +293,11 @@ impl<'a> SearchForFacetValues<'a> {
match self.query.as_ref() {
Some(query) => {
if self.search_query.index.authorize_typos(rtxn)? {
let authorize_typos = self.search_query.index.authorize_typos(rtxn)?;
let field_authorizes_typos =
!self.search_query.index.exact_attributes_ids(rtxn)?.contains(&fid);
if authorize_typos && field_authorizes_typos {
let mut result = vec![];
let exact_words_fst = self.search_query.index.exact_words(rtxn)?;