Add geo bounding box filter

This commit is contained in:
Mubelotix
2025-08-19 11:57:04 +02:00
parent 47f1e707d5
commit 3ee8a75065
6 changed files with 379 additions and 48 deletions

View File

@ -1031,7 +1031,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)