mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-01-04 16:22:55 +00:00
NOBUG Remove 256 num fields limit
This commit is contained in:
@@ -12,8 +12,6 @@ use std::sync::Arc;
|
||||
use super::*;
|
||||
use std::fmt;
|
||||
|
||||
const MAX_NUM_FIELDS: usize = 255;
|
||||
|
||||
/// Tantivy has a very strict schema.
|
||||
/// You need to specify in advance whether a field is indexed or not,
|
||||
/// stored or not, and RAM-based or not.
|
||||
@@ -100,9 +98,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