From f7636c20bbba4f288cb592950824da2a1fafb02d Mon Sep 17 00:00:00 2001 From: randomdan Date: Thu, 3 Apr 2014 13:37:45 +0000 Subject: Index the correct columns in FTS --- gentoobrowse/datasources/schema.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gentoobrowse/datasources/schema.sql b/gentoobrowse/datasources/schema.sql index 47761fc..0d62c3e 100644 --- a/gentoobrowse/datasources/schema.sql +++ b/gentoobrowse/datasources/schema.sql @@ -287,7 +287,7 @@ CREATE FUNCTION packagefts(p packages) RETURNS tsvector BEGIN RETURN (SETWEIGHT(TO_TSVECTOR('english', p.name), 'A') || SETWEIGHT(TO_TSVECTOR('english', p.description), 'B') || - SETWEIGHT(TO_TSVECTOR('english', COALESCE(p.description, '')), 'C')); + SETWEIGHT(TO_TSVECTOR('english', COALESCE(p.summary, '')), 'C')); END $$; -- cgit v1.2.3