Skip to content

Commit

Permalink
Fix bill index definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
tashian committed Apr 21, 2011
1 parent 16430e5 commit 0f242d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/models/bill.rb
Expand Up @@ -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.
Expand Down

0 comments on commit 0f242d5

Please sign in to comment.