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

Add tsvector codec to the registry #2001

Open
2 of 6 tasks
roland-pep opened this issue Mar 22, 2024 · 1 comment
Open
2 of 6 tasks

Add tsvector codec to the registry #2001

roland-pep opened this issue Mar 22, 2024 · 1 comment

Comments

@roland-pep
Copy link

Feature description

Grafast currently lacks support for a built-in tsvector codec, which is essential for implementing full-text search functionalities within PostgreSQL databases.

Motivating example

Full-text search capabilities are essential for applications dealing with large volumes of text data, requiring efficient and flexible search functionalities. This feature could also encourage the adoption of Grafast/PostGraphile in projects where advanced search capabilities are a requirement.

Breaking changes

This feature is not expected to introduce breaking changes.

Supporting development

I :

  • am interested in building this feature myself
  • am interested in collaborating on building this feature
  • am willing to help testing this feature before it's released
  • am willing to write a test-driven test suite for this feature (before it exists)
  • am a Graphile sponsor ❤️
  • have an active support or consultancy contract with Graphile
@benjie
Copy link
Member

benjie commented May 9, 2024

I use FTS a lot so definitely see value in tsvector/tsquery. Please check out https://github.com/graphile/crystal/blob/main/graphile-build/graphile-build-pg/src/plugins/PgLtreePlugin.ts (from #1949) for an example of adding a codec via the plugin system. If you don't need to represent the tsvector in the GraphQL schema (why would you?) then you can even skip the schema hooks section and stick to just using the gather hooks.

Let me know how you get on!

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

2 participants