From 4310928803940181ae6cfd8a598d03910c5c525b Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Wed, 12 Jul 2023 10:08:56 +0200 Subject: [PATCH] Fixes #3912 --- milli/src/search/new/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/milli/src/search/new/mod.rs b/milli/src/search/new/mod.rs index 5da344014..26f992be2 100644 --- a/milli/src/search/new/mod.rs +++ b/milli/src/search/new/mod.rs @@ -104,8 +104,10 @@ impl<'ctx> SearchContext<'ctx> { } .into()) } + // The field is not searchable, but the searchableAttributes are set to * => ignore field + (None, None) => continue, // The field is not searchable => User error - _otherwise => { + (_fid, Some(false)) => { let mut valid_fields: BTreeSet<_> = fids_map.names().map(String::from).collect();