From f398568e144a821f68cb420313413d296a3b51e5 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Tue, 28 Oct 2014 00:06:34 +0100 Subject: [PATCH] full text: use a different name in select_dict for score. --- product/ZSQLCatalog/Operator/ComparisonOperator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ZSQLCatalog/Operator/ComparisonOperator.py b/product/ZSQLCatalog/Operator/ComparisonOperator.py index f152ccea8d..49e5ec3a93 100644 --- a/product/ZSQLCatalog/Operator/ComparisonOperator.py +++ b/product/ZSQLCatalog/Operator/ComparisonOperator.py @@ -111,7 +111,7 @@ class MatchComparisonOperator(MonovaluedComparisonOperator): } select_dict = {} if not only_group_columns: - select_dict[column.replace('`', '').split('.')[-1]] = match_string + select_dict['%s__score__' % column.replace('`', '').rsplit('.', 1)[-1]] = match_string # Sort on this column uses relevance. # TODO: Add a way to allow sorting by raw column value. order_by_dict = { -- 2.30.9