From 67ff4b0d6aab4ad479f716e5f0b09ec5258633dc Mon Sep 17 00:00:00 2001 From: Pat Allan Date: Wed, 4 Jan 2012 11:00:35 +1100 Subject: [PATCH] Add rank_expr option. --- HISTORY | 3 +++ lib/thinking_sphinx/search.rb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index f9b169d71..c79515111 100644 --- a/HISTORY +++ b/HISTORY @@ -1,3 +1,6 @@ +Edge: +* Allow for rank_expr option being passed through to Riddle. + 1.4.11 - January 2nd 2011 * Handle no results for total_pages and total_entries with defaults of 0. * No longer shuffle Sphinx addresses by default. diff --git a/lib/thinking_sphinx/search.rb b/lib/thinking_sphinx/search.rb index 6a06da573..9e0898738 100644 --- a/lib/thinking_sphinx/search.rb +++ b/lib/thinking_sphinx/search.rb @@ -530,7 +530,7 @@ def prepare(client) [ :max_matches, :group_by, :group_function, :group_clause, :group_distinct, :id_range, :cut_off, :retry_count, :retry_delay, - :rank_mode, :max_query_time, :field_weights + :rank_mode, :rank_expr, :max_query_time, :field_weights ].each do |key| value = options[key] || index_options[key] client.send("#{key}=", value) if value