We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59c0dd5 commit b1bc383Copy full SHA for b1bc383
1 file changed
lib/collection/src/problems/unindexed_field.rs
@@ -604,3 +604,20 @@ impl From<FieldIndexType> for PayloadFieldSchema {
604
}
605
606
607
+
608
+#[cfg(test)]
609
+mod tests {
610
+ use super::*;
611
+ #[test]
612
+ fn integer_index_capacities() {
613
+ let params = PayloadSchemaParams::Integer(IntegerIndexParams {
614
+ lookup: Some(true),
615
+ range: Some(true),
616
+ ..Default::default()
617
+ });
618
+ let schema = PayloadFieldSchema::FieldParams(params);
619
+ let index_types = schema_capacities(&schema);
620
+ assert!(index_types.contains(&FieldIndexType::IntMatch));
621
+ assert!(index_types.contains(&FieldIndexType::IntRange));
622
+ }
623
+}
0 commit comments