mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3900] [MERGED] refactor: use trigram search index instead of full text search #4578
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4578
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3900
Author: @AndrewBastin
Created: 3/14/2024
Status: ✅ Merged
Merged: 3/15/2024
Merged by: @AndrewBastin
Base:
release/2024.3.0← Head:refactor/text-search-trigram📝 Commits (2)
2a76af2refactor: use trigram search index instead of FTS53beb35chore: fixed return type mismatch with generateParentTree function📊 Changes
3 files changed (+113 additions, -52 deletions)
View changed files
📝
packages/hoppscotch-backend/prisma/migrations/20240226053141_full_text_search_additions/migration.sql(+18 -13)📝
packages/hoppscotch-backend/src/team-collection/team-collection.service.ts(+58 -39)📝
packages/hoppscotch-backend/src/utils.ts(+37 -0)📄 Description
This PR intends to refactor the upcoming Team Collection Search mechanism to use Postgres Trigram Indices instead of Full Text Search for their implementation.
What's changed
escapeSqlLikeStringfunction to create escaped strings for usage in SQLLIKEstatements.ILIKEqueries instead of old FTS vector lookups.Notes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
v18support #4864