From feece6eaac024a9babbd327c0d4ffb4278ce8739 Mon Sep 17 00:00:00 2001 From: Ronja Date: Fri, 16 Oct 2026 11:38:22 +0200 Subject: [PATCH] docs: describe the search text limits in schema.graphql The search argument now says: at most 80 characters and 8 words, text without searchable words finds nothing, and clients should limit their input field. --- backend/src/schema.graphql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/src/schema.graphql b/backend/src/schema.graphql index 2134a1d..52c40a5 100644 --- a/backend/src/schema.graphql +++ b/backend/src/schema.graphql @@ -198,7 +198,10 @@ type Query { One or more words, case-insensitive. All the words must match: an item is found if, for every search word, it has a word that starts with it, in the code, name or description. A trailing "s" is removed from each search - word. Empty or missing means no text filter. + word. At most 80 characters and 8 words, otherwise BAD_USER_INPUT. Text + that has no searchable words (such as "ΓΈ" or "%") finds nothing. Empty or + only spaces means no text filter. A client should limit its input field to + 80 characters. """ search: String filter: CatalogFilter