mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-22 21:04:27 +01:00
Mark geosearch as currently unimplemented for sort rule
This commit is contained in:
parent
abb4522f76
commit
5ac129bfa1
@ -35,8 +35,8 @@ use words::Words;
|
|||||||
use self::ranking_rules::{BoxRankingRule, RankingRule};
|
use self::ranking_rules::{BoxRankingRule, RankingRule};
|
||||||
use self::sort::Sort;
|
use self::sort::Sort;
|
||||||
use crate::{
|
use crate::{
|
||||||
AscDesc, CriterionError, Filter, Index, MatchingWords, Member, Result, SearchResult,
|
AscDesc, Filter, Index, MatchingWords, Member, Result, SearchResult, TermsMatchingStrategy,
|
||||||
TermsMatchingStrategy,
|
UserError,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// A structure used throughout the execution of a search query.
|
/// 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());
|
desc.insert(field_name.clone());
|
||||||
Sort::new(ctx.index, ctx.txn, field_name, false)?
|
Sort::new(ctx.index, ctx.txn, field_name, false)?
|
||||||
}
|
}
|
||||||
|
// geosearch
|
||||||
_ => {
|
_ => {
|
||||||
return Err(
|
todo!()
|
||||||
CriterionError::ReservedNameForSort { name: "_geoPoint".to_string() }.into()
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
ranking_rules.push(Box::new(sort_ranking_rule));
|
ranking_rules.push(Box::new(sort_ranking_rule));
|
||||||
|
Loading…
Reference in New Issue
Block a user