mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Apply suggestions from code review
Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
parent
c81ff22c5b
commit
a84f3a8b31
13 changed files with 77 additions and 69 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue