Sha256: a928236b4d494daaa385e6af6b61167347a4d6c3d704b9721f85d047a5861640

Contents?: true

Size: 528 Bytes

Versions: 38

Compression:

Stored size: 528 Bytes

Contents

require 'features/support/models/tag'
require 'features/support/models/tagging'

class Developer < ActiveRecord::Base
  has_many :taggings, :as => :taggable
  has_many :tags, :through => :taggings
  
  define_index do
    indexes country,                      :facet => true
    indexes state,                        :facet => true
    indexes tags.text,  :as => :tags,     :facet => true
    has age,                              :facet => true
    has tags(:id),      :as => :tag_ids,  :facet => true
    facet city
  end
end

Version data entries

38 entries across 38 versions & 8 rubygems

Version Path
skalee-thinking-sphinx-1.3.14.2 features/support/models/developer.rb
skalee-thinking-sphinx-1.3.14.1 features/support/models/developer.rb
hawkerb-thinking-sphinx-1.3.18 features/support/models/developer.rb
warp-thinking-sphinx-1.3.16 features/support/models/developer.rb
thinking-sphinx-1.3.16 features/support/models/developer.rb
hawkerb-thinking-sphinx-1.3.17 features/support/models/developer.rb
thinking-sphinx-1.3.15 features/support/models/developer.rb
hawkerb-thinking-sphinx-1.3.16 features/support/models/developer.rb
hawkerb-thinking-sphinx-1.3.15 features/support/models/developer.rb
hawkerb-thinking-sphinx-1.3.14 features/support/models/developer.rb
zipme-thinking-sphinx-1.3.14 features/support/models/developer.rb
thinking-sphinx-1.3.14 features/support/models/developer.rb
warp-thinking-sphinx-1.3.13 features/support/models/developer.rb
thinking-sphinx-1.3.13 features/support/models/developer.rb
thinking-sphinx-1.3.12 features/support/models/developer.rb
thinking-sphinx-1.3.11 features/support/models/developer.rb
warp-thinking-sphinx-1.3.11 features/support/models/developer.rb
warp-thinking-sphinx-1.3.10 features/support/models/developer.rb
thinking-sphinx-1.3.10 features/support/models/developer.rb
thinking-sphinx-1.3.9 features/support/models/developer.rb