mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Allow to introduce attributes only at the end of a schema
This commit is contained in:
parent
c4087e2ec2
commit
20319f7974
3 changed files with 14 additions and 5 deletions
|
@ -169,6 +169,10 @@ impl Schema {
|
|||
attributes
|
||||
}
|
||||
|
||||
pub fn number_of_attributes(&self) -> usize {
|
||||
self.inner.attrs.len()
|
||||
}
|
||||
|
||||
pub fn props(&self, attr: SchemaAttr) -> SchemaProps {
|
||||
let (_, props) = self.inner.props[attr.0 as usize];
|
||||
props
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue