[GH-ISSUE #1726] [Feature]: Better search bar in general #852

Closed
opened 2026-10-21 05:22:17 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @Navgner on GitHub (May 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1726

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Currently, the search functionality in the Character Cards library (and to a lesser extent, the Lorebook) is very basic and often feels incomplete. For users managing larger collections, finding specific characters or lore entries is difficult because:

  • The search is applied globally, making it impossible to restrict queries to specific fields (e.g., searching for a keyword specifically in a character's "Personality" vs. their "Description", "Title", or "Tags").
  • There is no control over matching behavior, such as case sensitivity or strict whitespace matching, leading to irrelevant search results.

Proposed solution

introducing an expandable "Advanced Search" panel or a set of basic filter toggles next to the search bar with the following features:

  1. Search Scope Filters (Where to search):

    • Checkboxes or toggles to define which card fields are searched:
      • Title / Name
      • Tags
      • Genres
      • Description
      • Personality
      • All fields (Default)
  2. Matching Parameters:

    • Case Sensitive: A toggle to choose whether the search distinguishes between uppercase and lowercase letters.
    • Match Type / Whitespace Sensitivity: Options to switch between Contains (default), Exact Match (respecting exact spaces and characters), and Starts With / Ends With.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Navgner on GitHub (May 31, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1726 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Currently, the search functionality in the Character Cards library (and to a lesser extent, the Lorebook) is very basic and often feels incomplete. For users managing larger collections, finding specific characters or lore entries is difficult because: - The search is applied globally, making it impossible to restrict queries to specific fields (e.g., searching for a keyword specifically in a character's "Personality" vs. their "Description", "Title", or "Tags"). - There is no control over matching behavior, such as case sensitivity or strict whitespace matching, leading to irrelevant search results. ## Proposed solution introducing an expandable "Advanced Search" panel or a set of basic filter toggles next to the search bar with the following features: 1. **Search Scope Filters (Where to search):** - Checkboxes or toggles to define which card fields are searched: - **Title / Name** - **Tags** - **Genres** - **Description** - **Personality** - **All fields** (Default) 2. **Matching Parameters:** - **Case Sensitive:** A toggle to choose whether the search distinguishes between uppercase and lowercase letters. - **Match Type / Whitespace Sensitivity:** Options to switch between *Contains* (default), *Exact Match* (respecting exact spaces and characters), and *Starts With / Ends With*. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@cha1latte commented on GitHub (May 31, 2026):

Triage note: labeling this as scope-risk because advanced field filters and match modes are aligned with catalog search, but the proposal spans character cards, lorebooks, multiple searchable fields, and search semantics that should be sliced before implementation.

The least risky next step is to choose one first surface, likely Character Cards title/tags filters, then split richer matching controls into follow-up issues if the first slice proves useful.

<!-- gh-comment-id:4587586863 --> @cha1latte commented on GitHub (May 31, 2026): Triage note: labeling this as `scope-risk` because advanced field filters and match modes are aligned with catalog search, but the proposal spans character cards, lorebooks, multiple searchable fields, and search semantics that should be sliced before implementation. The least risky next step is to choose one first surface, likely Character Cards title/tags filters, then split richer matching controls into follow-up issues if the first slice proves useful.
Author
Owner

@SpicyMarinara commented on GitHub (Jun 1, 2026):

Sure, we can improve the searches.

<!-- gh-comment-id:4591240213 --> @SpicyMarinara commented on GitHub (Jun 1, 2026): Sure, we can improve the searches.
Author
Owner

@SpicyMarinara commented on GitHub (Jun 1, 2026):

Fixed a first safe search slice on refactor in 0d1c6cbe.

What changed:

  • Character search now supports scoped terms directly in the search bar: name:, title:/comment:, tag:/tags:, description:/desc:, and personality:.
  • Quoted scoped terms work, e.g. description:"ice doctor".
  • Existing broad text search and -tag:/!tag: exclusions still work.
  • Character Library and the compact Characters panel both apply the scoped filters.
  • Search placeholders now advertise the supported scoped syntax.

Notes:

  • I kept this to Character Cards only, matching the triage recommendation for a low-risk first surface. Lorebook search and richer match modes can stay as future follow-up slices.

Verification:

  • pnpm typecheck
  • pnpm check:architecture
  • git diff --check
<!-- gh-comment-id:4592016308 --> @SpicyMarinara commented on GitHub (Jun 1, 2026): Fixed a first safe search slice on refactor in 0d1c6cbe. What changed: - Character search now supports scoped terms directly in the search bar: name:, title:/comment:, tag:/tags:, description:/desc:, and personality:. - Quoted scoped terms work, e.g. description:"ice doctor". - Existing broad text search and -tag:/!tag: exclusions still work. - Character Library and the compact Characters panel both apply the scoped filters. - Search placeholders now advertise the supported scoped syntax. Notes: - I kept this to Character Cards only, matching the triage recommendation for a low-risk first surface. Lorebook search and richer match modes can stay as future follow-up slices. Verification: - pnpm typecheck - pnpm check:architecture - git diff --check
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
Pasta-Devs/Marinara-Engine#852
No description provided.