mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-01-05 16:52:55 +00:00
removing the 255 fields limit
This commit is contained in:
@@ -100,9 +100,6 @@ impl SchemaBuilder {
|
||||
/// Finalize the creation of a `Schema`
|
||||
/// This will consume your `SchemaBuilder`
|
||||
pub fn build(self,) -> Schema {
|
||||
if self.fields.len() > MAX_NUM_FIELDS {
|
||||
panic!("There may be at most 255 fields.");
|
||||
}
|
||||
Schema(Arc::new(InnerSchema {
|
||||
fields: self.fields,
|
||||
fields_map: self.fields_map,
|
||||
|
||||
Reference in New Issue
Block a user