Full-text search using postgresql #162
@ -13,6 +13,7 @@ def create_indexes(apps, schema_editor):
|
||||
gin ((to_tsvector('english', name) || ' ' || to_tsvector('english', description)))
|
||||
"""
|
||||
)
|
||||
cursor.execute('create extension if not exists pg_trgm;')
|
||||
cursor.execute(
|
||||
"""
|
||||
CREATE INDEX extensions_trgm_gin ON extensions_extension USING
|
||||
|
Loading…
Reference in New Issue
Block a user