Sha256: fe75ebbf442092a465342be1bb7fab223690532b85be80ec58fd965e601eeef0

Contents?: true

Size: 360 Bytes

Versions: 3

Compression:

Stored size: 360 Bytes

Contents

class Geo::Address < ActiveRecord::Base
  belongs_to :user
  belongs_to :state, :class_name => 'Geo::State'
  
  is_indexed 'fields' => ['name'],
    'concatenate' => [{'fields' => ['line_1', 'line_2', 'city', 'province_region', 'zip_postal_code'], 'as' => 'content'}],
    'include' => [{'class_name' => 'Geo::State', 'field' => 'name', 'as' => 'state'}]
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ultrasphinx-1.6.7 test/integration/app/app/models/geo/address.rb
ultrasphinx-1.5.3 test/integration/app/app/models/geo/address.rb
ultrasphinx-1.6 test/integration/app/app/models/geo/address.rb