diff options
Diffstat (limited to 'app/models/public_body.rb')
-rw-r--r-- | app/models/public_body.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb index ed30585e4..2c13d1bf3 100644 --- a/app/models/public_body.rb +++ b/app/models/public_body.rb @@ -139,7 +139,9 @@ class PublicBody < ActiveRecord::Base :values => [ [ :created_at_numeric, 1, "created_at", :number ] # for sorting ], - :terms => [ [ :variety, 'V', "variety" ] ] + :terms => [ [ :variety, 'V', "variety" ], + [ :tag_array_for_search, 'U', "tag" ] + ] def created_at_numeric # format it here as no datetime support in Xapian's value ranges return self.created_at.strftime("%Y%m%d%H%M%S") |