Sha256: 85a46d37bcb6bd23fdc80a3cf49ad5a1c18eb42cc2bd45e45f6067bed72b72f4

Contents?: true

Size: 694 Bytes

Versions: 29

Compression:

Stored size: 694 Bytes

Contents

require "#{File.dirname(__FILE__)}/tag"
require "#{File.dirname(__FILE__)}/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
    has state,          :as => :state_wordcount, :type => :wordcount
    
    facet "LOWER(city)", :as => :city, :type => :string, :value => :city
    
    group_by 'city'
  end
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
friendlyfashion-thinking-sphinx-2.0.14.4 features/thinking_sphinx/models/developer.rb
friendlyfashion-thinking-sphinx-2.0.14.3 features/thinking_sphinx/models/developer.rb
thinking-sphinx-2.1.0 features/thinking_sphinx/models/developer.rb
thinking-sphinx-1.5.0 features/thinking_sphinx/models/developer.rb
friendlyfashion-thinking-sphinx-2.0.14.2 features/thinking_sphinx/models/developer.rb
friendlyfashion-thinking-sphinx-2.0.14.1 features/thinking_sphinx/models/developer.rb
thinking-sphinx-2.0.14 features/thinking_sphinx/models/developer.rb
thinking-sphinx-1.4.14 features/thinking_sphinx/models/developer.rb
friendlyfashion-thinking-sphinx-2.0.13.3 features/thinking_sphinx/models/developer.rb
friendlyfashion-thinking-sphinx-2.0.13.2 features/thinking_sphinx/models/developer.rb
friendlyfashion-thinking-sphinx-2.0.13.1 features/thinking_sphinx/models/developer.rb
friendlyfashion-thinking-sphinx-2.0.13 features/thinking_sphinx/models/developer.rb
thinking-sphinx-2.0.13 features/thinking_sphinx/models/developer.rb
thinking-sphinx-1.4.13 features/thinking_sphinx/models/developer.rb
thinking-sphinx-2.0.12 features/thinking_sphinx/models/developer.rb
thinking-sphinx-1.4.12 features/thinking_sphinx/models/developer.rb
thinking-sphinx-2.0.11 features/thinking_sphinx/models/developer.rb
thinking-sphinx-1.4.11 features/thinking_sphinx/models/developer.rb
thinking-sphinx-2.0.10 features/thinking_sphinx/models/developer.rb
thinking-sphinx-1.4.10 features/thinking_sphinx/models/developer.rb