mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
expose api for new settings
This commit is contained in:
parent
7c14769226
commit
38d57d213f
5 changed files with 593 additions and 79 deletions
|
@ -49,10 +49,7 @@ impl Schema {
|
|||
}
|
||||
|
||||
pub fn contains<S: Into<String>>(&self, name: S) -> bool {
|
||||
match self.fields_map.get_id(name.into()) {
|
||||
Some(_) => true,
|
||||
None => false,
|
||||
}
|
||||
self.fields_map.get_id(name.into()).is_some()
|
||||
}
|
||||
|
||||
pub fn get_or_create_empty<S: Into<String>>(&mut self, name: S) -> SResult<FieldId> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue