Skip to content

Commit 889db7e

Browse files
committed
Update documentation to explain the case where the table exist previously
1 parent 12a8c23 commit 889db7e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

extensions/Postgres/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,16 @@ For more details, check out the
125125
[this article](https://jkatz05.com/post/postgres/hybrid-search-postgres-pgvector)
126126
on hybrid search in Postgres.
127127

128+
The connector creates text search index automatically on table creation.
129+
130+
In the case you activate the text search once PostgreSQL tables are created with an older
131+
version of the connector or you want to change the TextSearchLanguage you will need
132+
to create manually the text search index using the column names and table name that
133+
you had configured.
134+
135+
**SQL to add Text Search Index:**
136+
'CREATE INDEX IF NOT EXISTS {indexName} ON {tableName} USING GIN(to_tsvector('TextSearchLanguage',{this._colContent}));
137+
128138
## Column names and table schema
129139

130140
The connector uses a default schema with predefined columns and indexes.

0 commit comments

Comments
 (0)