Bug 72826 - Use correct GIN config

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1132 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2010-12-07 11:01:05 +00:00
parent 31ac2b38bc
commit 42febdd2ac
1 changed files with 4 additions and 2 deletions

View File

@ -186,9 +186,11 @@ sub sql_fulltext_search
{
my $self = shift;
my ($column, $text) = @_;
my $language = Bugzilla->localconfig->{postgres_fulltext_language};
$language = $self->quote($language).',';
return (
'(to_tsvector('.$column.') @@ to_tsquery('.$self->quote($text).'))',
'(ts_rank(to_tsvector('.$column.'), to_tsquery('.$self->quote($text).')))',
'(to_tsvector('.$language.$column.') @@ to_tsquery('.$self->quote($text).'))',
'(ts_rank(to_tsvector('.$language.$column.'), to_tsquery('.$self->quote($text).')))',
);
}