Sha256: be3a2aa6900b131f29bd47a34bb5a03c1b7566a38e965960a9c3cf638723bd30

Contents?: true

Size: 214 Bytes

Versions: 81

Compression:

Stored size: 214 Bytes

Contents

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

Version data entries

81 entries across 81 versions & 13 rubygems

Version Path
thinking-sphinx-1.3.17 features/thinking_sphinx/models/comment.rb
warp-thinking-sphinx-1.3.16 features/support/models/comment.rb
thinking-sphinx-1.3.16 features/support/models/comment.rb
hawkerb-thinking-sphinx-1.3.17 features/support/models/comment.rb
thinking-sphinx-1.3.15 features/support/models/comment.rb
hawkerb-thinking-sphinx-1.3.16 features/support/models/comment.rb
hawkerb-thinking-sphinx-1.3.15 features/support/models/comment.rb
hawkerb-thinking-sphinx-1.3.14 features/support/models/comment.rb
zipme-thinking-sphinx-1.3.14 features/support/models/comment.rb
thinking-sphinx-1.3.14 features/support/models/comment.rb
warp-thinking-sphinx-1.3.13 features/support/models/comment.rb
thinking-sphinx-1.3.13 features/support/models/comment.rb
thinking-sphinx-1.3.12 features/support/models/comment.rb
thinking-sphinx-1.3.11 features/support/models/comment.rb
warp-thinking-sphinx-1.3.11 features/support/models/comment.rb
warp-thinking-sphinx-1.3.10 features/support/models/comment.rb
thinking-sphinx-1.3.10 features/support/models/comment.rb
thinking-sphinx-1.3.9 features/support/models/comment.rb
ts-xml-0.0.1 features/support/models/comment.rb
thinking-sphinx-1.3.8 features/support/models/comment.rb