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
friendlyfashion-thinking-sphinx-2.0.14.4 features/thinking_sphinx/models/comment.rb
friendlyfashion-thinking-sphinx-2.0.14.3 features/thinking_sphinx/models/comment.rb
thinking-sphinx-2.1.0 features/thinking_sphinx/models/comment.rb
thinking-sphinx-1.5.0 features/thinking_sphinx/models/comment.rb
friendlyfashion-thinking-sphinx-2.0.14.2 features/thinking_sphinx/models/comment.rb
friendlyfashion-thinking-sphinx-2.0.14.1 features/thinking_sphinx/models/comment.rb
thinking-sphinx-2.0.14 features/thinking_sphinx/models/comment.rb
thinking-sphinx-1.4.14 features/thinking_sphinx/models/comment.rb
friendlyfashion-thinking-sphinx-2.0.13.3 features/thinking_sphinx/models/comment.rb
friendlyfashion-thinking-sphinx-2.0.13.2 features/thinking_sphinx/models/comment.rb
friendlyfashion-thinking-sphinx-2.0.13.1 features/thinking_sphinx/models/comment.rb
friendlyfashion-thinking-sphinx-2.0.13 features/thinking_sphinx/models/comment.rb
thinking-sphinx-2.0.13 features/thinking_sphinx/models/comment.rb
thinking-sphinx-1.4.13 features/thinking_sphinx/models/comment.rb
thinking-sphinx-2.0.12 features/thinking_sphinx/models/comment.rb
thinking-sphinx-1.4.12 features/thinking_sphinx/models/comment.rb
thinking-sphinx-2.0.11 features/thinking_sphinx/models/comment.rb
thinking-sphinx-1.4.11 features/thinking_sphinx/models/comment.rb
thinking-sphinx-2.0.10 features/thinking_sphinx/models/comment.rb
thinking-sphinx-1.4.10 features/thinking_sphinx/models/comment.rb