From 4e3ed60f090f62bdb30f6785caae0824123429dc Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Wed, 5 Aug 2026 11:27:55 +0200 Subject: [PATCH] docs(search): document geo KQL predicates in the search README --- services/search/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/services/search/README.md b/services/search/README.md index fa73395ff9..6d47baf725 100644 --- a/services/search/README.md +++ b/services/search/README.md @@ -84,6 +84,16 @@ Not all parts are supported, the following list gives an overview of parts that * NEAR operator * Date intervals +### Geo queries + +Geopoint fields (currently `location`) support geo predicates on top of KQL: + +* `location:geo.distance(lat, lon, radius)` within `radius` of a point (units `km`, `m`, `mi`), e.g. `location:geo.distance(48.2, 16.3, 5km)` +* `location:geo.bbox(minLat, minLon, maxLat, maxLon)` inside a bounding box +* `location:geo.polygon(lat lon, lat lon, ...)` inside a polygon (at least three vertices) + +They compose with other restrictions via `AND` / `OR` / `NOT`. + In [this ADR](https://github.com/owncloud/ocis/blob/docs/ocis/adr/0020-file-search-query-language.md) you can read why KQL was chosen. ### Quoting values