move the reserved keyword logic for the criterion and sort + add test

This commit is contained in:
Tamo 2021-09-20 17:21:02 +02:00
parent 3b7a2cdbce
commit f4b8e5675d
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
2 changed files with 66 additions and 9 deletions

View file

@ -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)]