mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
move the reserved keyword logic for the criterion and sort + add test
This commit is contained in:
parent
3b7a2cdbce
commit
f4b8e5675d
2 changed files with 66 additions and 9 deletions
|
@ -13,7 +13,7 @@ use crate::{DocumentId, FieldId};
|
|||
pub type Object = Map<String, Value>;
|
||||
|
||||
pub fn is_reserved_keyword(keyword: &str) -> bool {
|
||||
["_geo", "_geoDistance"].contains(&keyword)
|
||||
["_geo", "_geoDistance", "_geoPoint", "_geoRadius"].contains(&keyword)
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue