Skip to content

Commit

Permalink
[178] Restore some valid results that were not displayed while searching
Browse files Browse the repository at this point in the history
Bug: #178
Signed-off-by: Stéphane Bégaudeau <stephane.begaudeau@gmail.com>
  • Loading branch information
sbegaudeau committed Jun 27, 2023
1 parent af4bd73 commit 7fc8bbf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
<dropTable tableName="attribute" />
<dropTable tableName="entity" />

<sql>ALTER TABLE organization ADD COLUMN textsearchable_generated tsvector GENERATED ALWAYS AS ( to_tsvector('english', identifier || '' || name) ) STORED</sql>
<sql>ALTER TABLE organization ADD COLUMN textsearchable_generated tsvector GENERATED ALWAYS AS ( to_tsvector('english', identifier || ' ' || name) ) STORED</sql>
<sql>CREATE INDEX organization_search_index ON organization USING GIN(textsearchable_generated)</sql>

<sql>ALTER TABLE project ADD COLUMN textsearchable_generated tsvector GENERATED ALWAYS AS ( to_tsvector('english', identifier || '' || name || '' || description) ) STORED</sql>
<sql>ALTER TABLE project ADD COLUMN textsearchable_generated tsvector GENERATED ALWAYS AS ( to_tsvector('english', identifier || ' ' || name || '' || description) ) STORED</sql>
<sql>CREATE INDEX project_search_index ON project USING GIN(textsearchable_generated)</sql>
</changeSet>
</databaseChangeLog>

0 comments on commit 7fc8bbf

Please sign in to comment.