From 5ac129bfa161a0aceda88382ace169c115c43f32 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Wed, 29 Mar 2023 15:20:22 +0200 Subject: [PATCH] Mark geosearch as currently unimplemented for sort rule --- milli/src/search/new/mod.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/milli/src/search/new/mod.rs b/milli/src/search/new/mod.rs index 125752944..de7a884e3 100644 --- a/milli/src/search/new/mod.rs +++ b/milli/src/search/new/mod.rs @@ -35,8 +35,8 @@ use words::Words; use self::ranking_rules::{BoxRankingRule, RankingRule}; use self::sort::Sort; use crate::{ - AscDesc, CriterionError, Filter, Index, MatchingWords, Member, Result, SearchResult, - TermsMatchingStrategy, + AscDesc, Filter, Index, MatchingWords, Member, Result, SearchResult, TermsMatchingStrategy, + UserError, }; /// A structure used throughout the execution of a search query. @@ -271,10 +271,9 @@ fn resolve_sort_criteria<'ctx, Query: RankingRuleQueryTrait>( desc.insert(field_name.clone()); Sort::new(ctx.index, ctx.txn, field_name, false)? } + // geosearch _ => { - return Err( - CriterionError::ReservedNameForSort { name: "_geoPoint".to_string() }.into() - ) + todo!() } }; ranking_rules.push(Box::new(sort_ranking_rule));