Bug 72826 - Use correct GIN config
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1132 6955db30-a419-402b-8a0d-67ecbb4d7f56master
parent
31ac2b38bc
commit
42febdd2ac
|
@ -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).')))',
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue