Skip to content

feat: add full-text search module - #381

Merged
devIKargi merged 2 commits into
StellAIverse:mainfrom
Xaxxoo:feat/search-module-369
Aug 22, 2026
Merged

feat: add full-text search module#381
devIKargi merged 2 commits into
StellAIverse:mainfrom
Xaxxoo:feat/search-module-369

Conversation

@Xaxxoo

@Xaxxoo Xaxxoo commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #369

This PR adds the first usable full-text search module for users, messages, and conversations.

What changed

  • Added SearchModule, service, controller, and indexed-document API.
  • Added idempotent upsert and deletion operations for indexing workers.
  • Added PostgreSQL websearch_to_tsquery search with ILIKE fallback, relevance ordering, highlighted snippets, resource filtering, and pagination.
  • Added facet counts by resource type.
  • Added normalized search result DTO behavior and Swagger-facing API routes.
  • Added focused service tests for upserts, query constraints, pagination, result normalization, and facets.
  • Added docs/SEARCH.md with indexing and query integration guidance.

Verification

  • npm test -- --runInBand src/search/search.service.spec.ts
  • npm run build:tsc
  • git diff --check

All checks pass.

@devIKargi
devIKargi merged commit 926eed1 into StellAIverse:main Aug 22, 2026
1 check 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.

Search module: full-text search, filtering, and faceting

2 participants