Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task: Implement generated text-search vector column system #266

Closed
iolyd opened this issue Feb 22, 2024 · 3 comments
Closed

Task: Implement generated text-search vector column system #266

iolyd opened this issue Feb 22, 2024 · 3 comments
Assignees

Comments

@iolyd
Copy link
Member

iolyd commented Feb 22, 2024

Task description

To enable a text-search feature on the platform requires us to first establish a concise vectorization flow. Since text search vectors are constructed with language-specific stemming (to_tsvector([regconfig],...)), we need to ensure easy access to a text row's corresponding language regconfig.

List of actions

No response

@iolyd iolyd self-assigned this Feb 22, 2024
@iolyd
Copy link
Member Author

iolyd commented Apr 3, 2024

Mostly completed through drizzle-orm-helpers support for tsvector/ tsquery types and helpers. Pending on drizzle-team/drizzle-orm#1471

@iolyd
Copy link
Member Author

iolyd commented Jun 21, 2024

Implementation using our own generated column trick ended up introducing a slew of challenges with migrations as it required some manual patching and is currently too error prone when used with drizzle-kit. GIN indices are now supported so we can try a partial implementation, but we likely also need generatedColumns support, which is currently a pending issue in drizzle-orm and drizzle-kit.

@iolyd
Copy link
Member Author

iolyd commented Jun 27, 2024

Generated columns are now freshly out (in beta): https://github.com/drizzle-team/drizzle-orm/releases/tag/v0.32.0-beta

@iolyd iolyd closed this as completed Jul 29, 2024
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

No branches or pull requests

1 participant