Skip to content

feat(search): Add regex search support for documentation #126

@vredchenko

Description

@vredchenko

Summary

Add optional regex search capabilities for power users searching documentation.

Challenge

MiniSearch doesn't natively support regex - uses fuzzy/prefix matching instead.

Potential Approaches

  1. Post-filter: Run MiniSearch first, then filter with RegExp.test()
  2. Separate path: Detect regex patterns (e.g., /pattern/), bypass MiniSearch, filter indexed docs directly
  3. UI options: Toggle switch, prefix detection, or docs-only limitation

Files to Modify

  • webui/src/hooks/useSearch.ts
  • webui/src/components/widgets/SearchPalette/SearchPalette.tsx

Priority

Future enhancement - not required for MVP. Medium complexity due to performance considerations.


From PR #124 review comment (Item 8)

Metadata

Metadata

Assignees

No one assigned

    Labels

    developmentNew features or functionality implementationenhancementMinor improvements to existing functionalityresearchInvestigation, spikes, or proof-of-concept worksmartem-devtools:webuiDeveloper dashboard web interface

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions