From 0f242d5b8d71009025850e870d923a2d95ea5aad Mon Sep 17 00:00:00 2001 From: tashian Date: Wed, 20 Apr 2011 15:22:32 -0700 Subject: [PATCH] Fix bill index definitions --- app/models/bill.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/models/bill.rb b/app/models/bill.rb index 9de8163e..ce651e83 100644 --- a/app/models/bill.rb +++ b/app/models/bill.rb @@ -68,8 +68,10 @@ def of_kind(kind) define_index do indexes title, :sortable => true - has bill_number, state_id, chamber_id, last_action_at, first_action_at - indexes session_id, :facet => true + indexes bill_number + has state_id, chamber_id + has last_action_at, first_action_at + has session_id, :facet => true # Trigger the join on mentions before indexing the count # We're using SQL to do this now... so no need to index it.