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