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

[Feature] Add a graphman command to re-create full-text-search columns (tsvector) #5802

Open
2 tasks done
sduchesneau opened this issue Feb 5, 2025 · 0 comments
Open
2 tasks done
Labels
enhancement New feature or request

Comments

@sduchesneau
Copy link
Contributor

Description

Reasoning: We hit an issue where some entries in a full-text-search column were actually null.

While the cause is unknown and that situation may not be relevant to other indexers (?), the fix was actually trivial:

update sgdXXX.subgraph_meta set 
subgraph_metadata_search = to_tsvector('english', COALESCE(display_name,'')) || to_tsvector('english', COALESCE(description, ''))
where subgraph_metadata_search is null

This mechanism (as well as searching for null values in that fulltext-search columns, for sanity checking), could easily be implemented in graphman for the next person who hits this.

Are you aware of any blockers that must be resolved before implementing this feature? If so, which? Link to any relevant GitHub issues.

No response

Some information to help us out

  • Tick this box if you plan on implementing this feature yourself.
  • I have searched the issue tracker to make sure this issue is not a duplicate.
@sduchesneau sduchesneau added the enhancement New feature or request label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant