[PR #2542] [MERGED] feat: remove flexsearch dependency and replace with simple string filtering #5718

Closed
opened 2026-04-16 13:50:10 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/2542
Author: @kolaente
Created: 4/4/2026
Status: Merged
Merged: 4/4/2026
Merged by: @kolaente

Base: mainHead: claude/investigate-issue-298-XCEJE


📝 Commits (2)

  • 1957b39 bench: add FlexSearch vs String.includes() comparison for label/project search
  • 81af94c fix: replace FlexSearch with String.includes() for label and project search

📊 Changes

6 files changed (+21 additions, -101 deletions)

View changed files

📝 frontend/package.json (+0 -1)
📝 frontend/pnpm-lock.yaml (+0 -8)
frontend/src/indexes/index.ts (+0 -51)
📝 frontend/src/stores/labels.ts (+5 -11)
📝 frontend/src/stores/projects.test.ts (+0 -9)
📝 frontend/src/stores/projects.ts (+16 -21)

📄 Description

This PR removes the flexsearch library and its associated indexing infrastructure, replacing it with simple string-based filtering for projects and labels. The change simplifies the codebase by removing unnecessary complexity for what amounts to basic substring matching.

Resolves https://github.com/go-vikunja/vikunja/issues/298


🔄 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/go-vikunja/vikunja/pull/2542 **Author:** [@kolaente](https://github.com/kolaente) **Created:** 4/4/2026 **Status:** ✅ Merged **Merged:** 4/4/2026 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `claude/investigate-issue-298-XCEJE` --- ### 📝 Commits (2) - [`1957b39`](https://github.com/go-vikunja/vikunja/commit/1957b3918d67b5285ef10490f382a3b39d62075f) bench: add FlexSearch vs String.includes() comparison for label/project search - [`81af94c`](https://github.com/go-vikunja/vikunja/commit/81af94c6ed2e41866191f6f82b2a2a1f320e5a1b) fix: replace FlexSearch with String.includes() for label and project search ### 📊 Changes **6 files changed** (+21 additions, -101 deletions) <details> <summary>View changed files</summary> 📝 `frontend/package.json` (+0 -1) 📝 `frontend/pnpm-lock.yaml` (+0 -8) ➖ `frontend/src/indexes/index.ts` (+0 -51) 📝 `frontend/src/stores/labels.ts` (+5 -11) 📝 `frontend/src/stores/projects.test.ts` (+0 -9) 📝 `frontend/src/stores/projects.ts` (+16 -21) </details> ### 📄 Description This PR removes the flexsearch library and its associated indexing infrastructure, replacing it with simple string-based filtering for projects and labels. The change simplifies the codebase by removing unnecessary complexity for what amounts to basic substring matching. Resolves https://github.com/go-vikunja/vikunja/issues/298 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 13:50:10 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#5718