Skip to content

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

@sduchesneau

Description

@sduchesneau

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions