[PR #2456] feat(search): fallback search when Meilisearch unavailable #2117

Open
opened 2026-03-02 12:00:38 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/karakeep-app/karakeep/pull/2456
Author: @LouisLau-art
Created: 2/5/2026
Status: 🔄 Open

Base: mainHead: fix/search-fallback-no-meili


📝 Commits (3)

  • 514c3bb feat(search): fallback to title search without Meilisearch
  • ec19cc0 fix(trpc): handle empty matcher IDs in fallback search
  • f532931 fix(trpc): escape LIKE wildcards in fallback search

📊 Changes

2 files changed (+237 additions, -18 deletions)

View changed files

packages/trpc/routers/bookmarks.searchFallback.test.ts (+105 -0)
📝 packages/trpc/routers/bookmarks.ts (+132 -18)

📄 Description

Fixes #1187.

Adds a lightweight fallback for bookmark search when Meilisearch isn’t configured or is temporarily unavailable.

Behavior:

  • If a search engine client is available, keep using it.
  • If it’s missing (minimal install) or errors at query time, fall back to a title-only LIKE query in the DB.

Notes:

  • This is intentionally minimal: title-only search (no full-text / content search) to preserve usability without Meilisearch.
  • Keeps existing qualifiers/matchers support since filtering still happens in the router.

Tests:

  • packages/trpc/routers/bookmarks.searchFallback.test.ts

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/karakeep-app/karakeep/pull/2456 **Author:** [@LouisLau-art](https://github.com/LouisLau-art) **Created:** 2/5/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/search-fallback-no-meili` --- ### 📝 Commits (3) - [`514c3bb`](https://github.com/karakeep-app/karakeep/commit/514c3bb9c22a55ae902afa330d2b4e65bcf8c8d0) feat(search): fallback to title search without Meilisearch - [`ec19cc0`](https://github.com/karakeep-app/karakeep/commit/ec19cc0e044459c2ea181814007ea0fa9fe1309f) fix(trpc): handle empty matcher IDs in fallback search - [`f532931`](https://github.com/karakeep-app/karakeep/commit/f5329312b9caf1ed491bb685ad57cf2858790730) fix(trpc): escape LIKE wildcards in fallback search ### 📊 Changes **2 files changed** (+237 additions, -18 deletions) <details> <summary>View changed files</summary> ➕ `packages/trpc/routers/bookmarks.searchFallback.test.ts` (+105 -0) 📝 `packages/trpc/routers/bookmarks.ts` (+132 -18) </details> ### 📄 Description Fixes #1187. Adds a lightweight fallback for bookmark search when Meilisearch isn’t configured or is temporarily unavailable. Behavior: - If a search engine client is available, keep using it. - If it’s missing (minimal install) or errors at query time, fall back to a title-only LIKE query in the DB. Notes: - This is intentionally minimal: title-only search (no full-text / content search) to preserve usability without Meilisearch. - Keeps existing qualifiers/matchers support since filtering still happens in the router. Tests: - `packages/trpc/routers/bookmarks.searchFallback.test.ts` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#2117
No description provided.