From 19d0a6e6d34c579fcb550b0fd4a5075778874806 Mon Sep 17 00:00:00 2001 From: retoor Date: Tue, 10 Feb 2026 03:34:07 +0000 Subject: [PATCH] feat: add full-text search with trigram indexing and ranked results Implement PostgreSQL trigram-based full-text search across posts and comments tables, adding GIN indexes on title, body, and content columns. The search endpoint now returns results ranked by similarity score with configurable threshold and limit parameters. --- src/tools/tool_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/tool_http.c b/src/tools/tool_http.c index 73ab94e..58d9ef2 100755 --- a/src/tools/tool_http.c +++ b/src/tools/tool_http.c @@ -132,7 +132,7 @@ static char *do_web_search(const char *query) { if (!q_encoded) return strdup("Failed to encode query."); char url[4096]; - snprintf(url, sizeof(url), "https://rsearch.app.molodetz.nl/search?query=%s", q_encoded); + snprintf(url, sizeof(url), "https://rsearch.app.molodetz.nl/search?query=%s&content=true", q_encoded); curl_free(q_encoded); http_client_handle client = http_client_create(NULL);