We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9da682f commit 6cd1fc2Copy full SHA for 6cd1fc2
lambda/amazon-aurora-pgvector-custom-resources/custom_resources/amazon_aurora_pgvector.py
@@ -103,6 +103,11 @@ def execute_sql_commands(
103
f"CREATE INDEX ON {schema_name}.{table_name} "
104
f"USING hnsw ({vector_field} vector_cosine_ops);"
105
)
106
+
107
+ cur.execute(
108
+ f"CREATE INDEX ON {schema_name}.{table_name} "
109
+ f"USING gin (to_tsvector('simple'::regconfig, {text_field}));"
110
+ )
111
conn.commit()
112
except pg8000.ProgrammingError as e:
113
error_message = f"Error executing SQL commands: {e}"
0 commit comments