From 58d4d4f71c366292efbdbb0feed782f0ba0cb6a9 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Tue, 18 Oct 2011 08:51:24 -0400 Subject: [PATCH] LP785374: rank() to rank_cd() for relevancy ranking This change was originally implemented at Evergreen Indiana by Steve Callender of Equinox, to address problems with relevancy sorting by title once the entries from search.relevance_adjustment were deleted for performance reasons. See LP785374 for more details. Signed-off-by: Dan Scott --- .../src/perlmods/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm index c1fb759811..a730f16f26 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm @@ -841,7 +841,7 @@ sub tsquery { sub rank { my $self = shift; return $self->{rank} if ($self->{rank}); - return $self->{rank} = 'rank(' . $self->table_alias . '.index_vector, ' . $self->table_alias . '.tsq)'; + return $self->{rank} = 'rank_cd(' . $self->table_alias . '.index_vector, ' . $self->table_alias . '.tsq,14)'; } -- 2.11.0