From d5aba495ee687e05373743dcfda168d6428f5a48 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Fri, 27 Nov 2026 12:00:34 +0100 Subject: [PATCH] docs(search): describe what paging and counts promise Pages are stable on an unchanged index only, and a resource reachable through several shares or spaces is counted once per route. --- services/search/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/services/search/README.md b/services/search/README.md index ed2d290f90..e37442e0a6 100644 --- a/services/search/README.md +++ b/services/search/README.md @@ -128,6 +128,12 @@ The quotes only decide what the value is. Whether a character takes part in the Empty turns it off. The service checks the template at startup. +## Paging and counts + +Matches are ordered by score, matches of the same score by their id. Pages are therefore stable as long as the index does not change. Between two requests a write can change scores and shift offsets, so a match can show up on two pages or on none. On OpenSearch every search of a user goes to the same shard copies, because replicas may score a document differently. + +The total and the aggregation buckets count a resource once per way it reaches the user. A file in a folder that was shared twice with the user, or in a project space the user is a member of and also received a share from, is counted once per share or space and listed as often. + ## Content analysis / Extraction The search service supports the following content extraction methods: