features/support/models/post.rb in warp-thinking-sphinx-1.2.12 vs features/support/models/post.rb in warp-thinking-sphinx-1.3.10
- old
+ new
@@ -10,10 +10,11 @@
indexes content
indexes tags.text, :as => :tags
indexes comments.content, :as => :comments
indexes authors.name, :as => :authors
- has comments(:id), :as => :comment_ids, :source => :ranged_query
+ has comments(:id), :as => :comment_ids, :source => :ranged_query,
+ :facet => true
has category.name, :facet => true, :as => :category_name, :type => :string
has 'COUNT(DISTINCT comments.id)', :as => :comments_count, :type => :integer
has comments.created_at, :as => :comments_created_at
end
end