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-2.0.1 features/thinking_sphinx/models/comment.rb
thinking-sphinx-2.0.0 features/thinking_sphinx/models/comment.rb
thinking-sphinx-1.4.0 features/thinking_sphinx/models/comment.rb
thorsson_thinking-sphinx-2.0 features/thinking_sphinx/models/comment.rb
angelf-thinking-sphinx-1.3.18 features/thinking_sphinx/models/comment.rb
thinking-sphinx-1.3.20 features/thinking_sphinx/models/comment.rb
thinking-sphinx-2.0.0.rc2 features/thinking_sphinx/models/comment.rb
thinking-sphinx-1.3.19 features/thinking_sphinx/models/comment.rb
skalee-thinking-sphinx-1.3.14.2 features/support/models/comment.rb
skalee-thinking-sphinx-1.3.14.1 features/support/models/comment.rb
thorsson_thinking-sphinx-1.3.18 features/thinking_sphinx/models/comment.rb
thinking-sphinx-allen-1.3.18.4 features/thinking_sphinx/models/comment.rb
thinking-sphinx-allen-1.3.18.3 features/thinking_sphinx/models/comment.rb
thinking-sphinx-allen-1.3.18.2 features/thinking_sphinx/models/comment.rb
thinking-sphinx-2.0.0.rc1 features/thinking_sphinx/models/comment.rb
thinking-sphinx-allen-1.3.18.1 features/thinking_sphinx/models/comment.rb
thinking-sphinx-allen-1.3.18 features/thinking_sphinx/models/comment.rb
thinking-sphinx-1.3.18 features/thinking_sphinx/models/comment.rb
josh_cutler-thinking-sphinx-1.3.17 features/thinking_sphinx/models/comment.rb
hawkerb-thinking-sphinx-1.3.18 features/support/models/comment.rb