Add geo bounding box filter

This commit is contained in:
Mubelotix
2025-08-19 11:57:04 +02:00
committed by Tamo
parent b56956ea0c
commit 607a1c2395
6 changed files with 379 additions and 48 deletions

View File

@ -1060,7 +1060,7 @@ impl Index {
}
/// Returns true if the geo sorting feature is enabled.
pub fn is_geojson_enabled(&self, rtxn: &RoTxn<'_>) -> Result<bool> {
pub fn is_geojson_filtering_enabled(&self, rtxn: &RoTxn<'_>) -> Result<bool> {
let geojson_filter =
self.filterable_attributes_rules(rtxn)?.iter().any(|field| field.has_geojson());
Ok(geojson_filter)