Adding full text search to movies
parent
ecca50afd6
commit
9070d4a4c8
@ -0,0 +1,2 @@
|
|||||||
|
DROP INDEX IF EXISTS movies_title_idx;
|
||||||
|
DROP INDEX IF EXISTS movies_genres_idx;
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
DROP INDEX IF EXISTS movies_title_idx;
|
||||||
|
DROP INDEX IF EXISTS movies_genres_idx;
|
||||||
|
CREATE INDEX IF NOT EXISTS movies_title_idx ON public.movies USING GIN (to_tsvector('simple', title));
|
||||||
|
CREATE INDEX IF NOT EXISTS movies_genres_idx ON public.movies USING GIN (genres);
|
||||||
Loading…
Reference in New Issue