mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 00:31:02 +00:00
move the reserved keyword logic for the criterion and sort + add test
This commit is contained in:
@ -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)]
|
||||
|
Reference in New Issue
Block a user