Clean up some comments

This commit is contained in:
Kerollmops 2021-03-03 18:19:10 +01:00
parent 2cc4a467a6
commit 9b6b35d9b7
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4
2 changed files with 0 additions and 7 deletions

View File

@ -283,7 +283,6 @@ fn resolve_candidates<'t>(
} }
} }
/// FIXME Make this function generic and mutualize it between Typo and proximity criterion
fn mdfs<'t>( fn mdfs<'t>(
ctx: &'t dyn Context, ctx: &'t dyn Context,
branches: &[Operation], branches: &[Operation],

View File

@ -94,12 +94,6 @@ impl<'a> Search<'a> {
let criteria_builder = criteria::CriteriaBuilder::new(self.rtxn, self.index)?; let criteria_builder = criteria::CriteriaBuilder::new(self.rtxn, self.index)?;
let mut criteria = criteria_builder.build(query_tree, facet_candidates)?; 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 offset = self.offset;
let mut limit = self.limit; let mut limit = self.limit;
let mut documents_ids = Vec::new(); let mut documents_ids = Vec::new();