Sha256: 60f4e89f88c43c48fc07f4513cccb29606c522755b8651fa745f986d73f93bb9

Contents?: true

Size: 214 Bytes

Versions: 15

Compression:

Stored size: 214 Bytes

Contents

class Comment < ActiveRecord::Base
  belongs_to :post
  belongs_to :category
  
  define_index do 
    indexes :content
    
    has category.name, :facet => true, :as => :category_name, :type => :string
  end
end

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
thinking-sphinx-1.3.6 features/support/models/comment.rb
thinking-sphinx-1.3.4 features/support/models/comment.rb
thinking-sphinx-1.3.3 features/support/models/comment.rb
thinking-sphinx-099-1.3.2 features/support/models/comment.rb
thinking-sphinx-1.3.2 features/support/models/comment.rb
moneypools-thinking-sphinx-1.3.1 features/support/models/comment.rb
thinking-sphinx-1.3.1 features/support/models/comment.rb
thinking-sphinx-099-1.3.1 features/support/models/comment.rb
thinking-sphinx-099-1.3.0 features/support/models/comment.rb
thinking-sphinx-1.3.0 features/support/models/comment.rb
thinking-sphinx-099-1.2.13 features/support/models/comment.rb
thinking-sphinx-1.2.13 features/support/models/comment.rb
moneypools-thinking-sphinx-1.2.13 features/support/models/comment.rb
moneypools-thinking-sphinx-1.2.12 features/support/models/comment.rb
warp-thinking-sphinx-1.2.12 features/support/models/comment.rb