mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-01-06 09:12:55 +00:00
added columnar to workspace
This commit is contained in:
@@ -59,6 +59,7 @@ sstable = { version="0.1", path="./sstable", package ="tantivy-sstable", optiona
|
||||
stacker = { version="0.1", path="./stacker", package ="tantivy-stacker" }
|
||||
tantivy-query-grammar = { version= "0.19.0", path="./query-grammar" }
|
||||
tantivy-bitpacker = { version= "0.3", path="./bitpacker" }
|
||||
columnar = { version= "0.1", path="./columnar", package="tantivy-columnar" }
|
||||
common = { version= "0.5", path = "./common/", package = "tantivy-common" }
|
||||
fastfield_codecs = { version= "0.3", path="./fastfield_codecs", default-features = false }
|
||||
tokenizer-api = { version="0.1", path="./tokenizer-api", package="tantivy-tokenizer-api" }
|
||||
|
||||
@@ -58,21 +58,21 @@ impl FastFieldsWriter {
|
||||
| FieldType::Bool(ref int_options) => {
|
||||
todo!();
|
||||
// match int_options.get_fastfield_cardinality() {
|
||||
// Some(Cardinality::SingleValue) => {
|
||||
// let mut fast_field_writer = IntFastFieldWriter::new(field, None);
|
||||
// let default_value = fast_field_default_value(field_entry);
|
||||
// fast_field_writer.set_val_if_missing(default_value);
|
||||
// single_value_writers.push(fast_field_writer);
|
||||
// }
|
||||
// Some(Cardinality::MultiValues) => {
|
||||
// let fast_field_writer = MultiValuedFastFieldWriter::new(
|
||||
// field,
|
||||
// FastFieldType::Numeric,
|
||||
// None,
|
||||
// );
|
||||
// multi_values_writers.push(fast_field_writer);
|
||||
// }
|
||||
// None => {}
|
||||
// Some(Cardinality::SingleValue) => {
|
||||
// let mut fast_field_writer = IntFastFieldWriter::new(field, None);
|
||||
// let default_value = fast_field_default_value(field_entry);
|
||||
// fast_field_writer.set_val_if_missing(default_value);
|
||||
// single_value_writers.push(fast_field_writer);
|
||||
// }
|
||||
// Some(Cardinality::MultiValues) => {
|
||||
// let fast_field_writer = MultiValuedFastFieldWriter::new(
|
||||
// field,
|
||||
// FastFieldType::Numeric,
|
||||
// None,
|
||||
// );
|
||||
// multi_values_writers.push(fast_field_writer);
|
||||
// }
|
||||
// None => {}
|
||||
// }
|
||||
}
|
||||
FieldType::Date(ref options) => match options.get_fastfield_cardinality() {
|
||||
|
||||
@@ -273,9 +273,9 @@ impl IndexMerger {
|
||||
FieldType::U64(ref options)
|
||||
| FieldType::I64(ref options)
|
||||
| FieldType::F64(ref options)
|
||||
| FieldType::Bool(ref options) => {
|
||||
| FieldType::Bool(ref options) => {
|
||||
todo!()
|
||||
},
|
||||
}
|
||||
FieldType::Date(ref options) => match options.get_fastfield_cardinality() {
|
||||
Some(Cardinality::SingleValue) => {
|
||||
self.write_single_fast_field(field, fast_field_serializer, doc_id_mapping)?;
|
||||
|
||||
@@ -258,8 +258,8 @@ impl FieldType {
|
||||
// FieldType::Date(ref date_options) => date_options.get_fastfield_cardinality(),
|
||||
// FieldType::Facet(_) => Some(Cardinality::MultiValues),
|
||||
// FieldType::JsonObject(_) => None,
|
||||
// FieldType::IpAddr(ref ip_addr_options) => ip_addr_options.get_fastfield_cardinality(),
|
||||
// }
|
||||
// FieldType::IpAddr(ref ip_addr_options) =>
|
||||
// ip_addr_options.get_fastfield_cardinality(), }
|
||||
}
|
||||
|
||||
/// returns true if the field is normed (see [fieldnorms](crate::fieldnorm)).
|
||||
|
||||
Reference in New Issue
Block a user