Files
tantivy/src/query/range_query/mod.rs
PSeitz-dd 7963b0b4aa Add fast field fallback for term query if not indexed (#2693)
* Add fast field fallback for term query if not indexed

* only fallback without scores
2025-09-12 14:58:21 +02:00

26 lines
551 B
Rust

use crate::schema::Type;
mod fast_field_range_doc_set;
mod range_query;
mod range_query_fastfield;
pub use common::bounds::BoundsRange;
pub use self::range_query::*;
pub use self::range_query_fastfield::*;
// TODO is this correct?
pub(crate) fn is_type_valid_for_fastfield_range_query(typ: Type) -> bool {
match typ {
Type::Str
| Type::U64
| Type::I64
| Type::F64
| Type::Bool
| Type::Date
| Type::Json
| Type::IpAddr => true,
Type::Facet | Type::Bytes => false,
}
}