diff --git a/milli/src/search/criteria/typo.rs b/milli/src/search/criteria/typo.rs index e952bda55..a78ac3339 100644 --- a/milli/src/search/criteria/typo.rs +++ b/milli/src/search/criteria/typo.rs @@ -283,7 +283,6 @@ fn resolve_candidates<'t>( } } - /// FIXME Make this function generic and mutualize it between Typo and proximity criterion fn mdfs<'t>( ctx: &'t dyn Context, branches: &[Operation], diff --git a/milli/src/search/mod.rs b/milli/src/search/mod.rs index 48b0f71da..8570cefaa 100644 --- a/milli/src/search/mod.rs +++ b/milli/src/search/mod.rs @@ -94,12 +94,6 @@ impl<'a> Search<'a> { let criteria_builder = criteria::CriteriaBuilder::new(self.rtxn, self.index)?; let mut criteria = criteria_builder.build(query_tree, facet_candidates)?; - // // We sort in descending order on a specific field *by hand*, don't do that at home. - // let attr_name = "released-timestamp"; - // let fid = self.index.fields_ids_map(self.rtxn)?.id(attr_name).unwrap(); - // let ftype = *self.index.faceted_fields(self.rtxn)?.get(attr_name).unwrap(); - // let desc_criterion = AscDesc::desc(self.index, self.rtxn, Box::new(words_criterion), fid, ftype)?; - let mut offset = self.offset; let mut limit = self.limit; let mut documents_ids = Vec::new();