mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 00:31:02 +00:00
Apply suggestions from code review
Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
@ -12,10 +12,8 @@ use crate::{DocumentId, FieldId};
|
||||
|
||||
pub type Object = Map<String, Value>;
|
||||
|
||||
const RESERVED_KEYWORD: &[&'static str] = &["_geo", "_geoDistance"];
|
||||
|
||||
pub fn is_reserved_keyword(keyword: &str) -> bool {
|
||||
RESERVED_KEYWORD.contains(&keyword)
|
||||
["_geo", "_geoDistance"].contains(&keyword)
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
Reference in New Issue
Block a user