Repository navigation
feat: add inverted index search - #653
Merged
Merged
Conversation
|
@toyes3429 is attempting to deploy a commit to the Vicky's projects Team on Vercel. A member of the Team first needs to authorize it. |
TheVicky1
approved these changes
Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🏛️ PACT Pull Request
1. Related Issue
Closes #645
2. Summary of Changes
src/lib/search/inverted-index.ts.tests/inverted-index.test.ts.3. Motivation & Context
This contribution introduces an inverted-index-based search utility to support efficient term-based document retrieval and relevance ranking.
It provides reusable search functionality with configurable matching behavior and result filtering.
4. Implementation Details
5. Testing & Local Validation
npm run lint— ESLint passed with 0 errorsnpx tsc --noEmit— TypeScript strict check passed with 0 errorsnpm test— Full authoritative test matrix passednpm test -- inverted-index— Targeted inverted-index test suite passed (18 tests)node scratch/secret-scan.mjs— Zero secrets or sensitive credentials detectednpm run build— Production build succeeded without errorsVerification performed: The targeted inverted-index suite passed all 18 tests. Full-project validation remains to be confirmed.
6. UI & Visual Changes
7. Database & Security Impact
8. Documentation Impact
9. Contributor Quality Checklist
.env.localfiles are included in this PR.upstream/main.git diffto ensure no stray files or debugging artifacts were committed.10. Reviewer Notes
The targeted test suite covers the primary search operations, relevance ranking, query operators, document lifecycle, and invalid inputs.
Please review the implementation and its test coverage for correctness and consistency with the project's existing search architecture.