Skip to content

Commit

Permalink
Add bool and explicit types for merger
Browse files Browse the repository at this point in the history
  • Loading branch information
boraarslan committed Jun 3, 2022
1 parent b8b1da2 commit da75f9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/indexer/merger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ impl IndexMerger {
FieldType::U64(ref options)
| FieldType::I64(ref options)
| FieldType::F64(ref options)
| FieldType::Bool(ref options)
| FieldType::Date(ref options) => match options.get_fastfield_cardinality() {
Some(Cardinality::SingleValue) => {
self.write_single_fast_field(field, fast_field_serializer, doc_id_mapping)?;
Expand All @@ -312,7 +313,7 @@ impl IndexMerger {
self.write_bytes_fast_field(field, fast_field_serializer, doc_id_mapping)?;
}
}
_ => {
FieldType::JsonObject(_) | FieldType::Facet(_) | FieldType::Str(_) => {
// We don't handle json fast field for the moment
// They can be implemented using what is done
// for facets in the future
Expand Down

0 comments on commit da75f9a

Please sign in to comment.