Skip to content

feat(search): implement PostgreSQL full-text search with ranking#489

Merged
LaGodxy merged 1 commit into
MettaChain:mainfrom
mijinummi:feat/full-text-search-clean
Apr 25, 2026
Merged

feat(search): implement PostgreSQL full-text search with ranking#489
LaGodxy merged 1 commit into
MettaChain:mainfrom
mijinummi:feat/full-text-search-clean

Conversation

@mijinummi
Copy link
Copy Markdown
Contributor

Pull Request: Implement Full-Text Search

Overview

This PR implements issue #380 Implement Full-Text Search.
It adds PostgreSQL full-text search with relevance ranking, suggestions, and filters.


Changes Introduced

  • Added full-text indexes to Prisma schema.
  • Implemented SearchService with relevance-ranked queries.
  • Added /search/projects endpoint for text search.
  • Added /search/suggest endpoint for search suggestions.
  • Supported filters for category, date, and user.

Acceptance Criteria ✅

  • Text search implemented
  • Relevance ranking applied
  • Suggestions available
  • Filters supported
  • Tests added

How to Test

  1. Call /search/projects?q=insurance → ranked results.
  2. Call /search/suggest?q=ins → suggestions returned.
  3. Apply filters (e.g., category=finance) → filtered results.
  4. Verify ranking order matches relevance.

Contribution Notes

…gestions, and filters

# Conflicts:
#	src/email/email.controller.ts
#	src/email/unsubscribe.controller.ts
@LaGodxy LaGodxy merged commit 3859dcd into MettaChain:main Apr 25, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Full-Text Search

2 participants