Sha256: 4f9736274e858e5c6a305b567bbab5656ed55f637572768372cb589a6e40e876

Contents?: true

Size: 510 Bytes

Versions: 33

Compression:

Stored size: 510 Bytes

Contents

class Alpha < ActiveRecord::Base
  define_index do
    indexes :name, :sortable => true
    
    has value, created_at, created_on
    has cost, :facet => true
    has active
    
    set_property :field_weights => {"name" => 10}
  end
  
  define_index 'alternative' do
    indexes :name, :as => :alternative_name, :sortable => true
    
    has value, created_at, created_on
    has cost, :facet => true
    
    set_property :field_weights => {'alternative_name' => 10}
    
    where "value > 3"
  end
end

Version data entries

33 entries across 33 versions & 10 rubygems

Version Path
joshcutler-thinking-sphinx-1.3.18 features/thinking_sphinx/models/alpha.rb
angelf-thinking-sphinx-1.3.18 features/thinking_sphinx/models/alpha.rb
thinking-sphinx-2.0.0.rc2 features/thinking_sphinx/models/alpha.rb
thinking-sphinx-1.3.19 features/thinking_sphinx/models/alpha.rb
skalee-thinking-sphinx-1.3.14.2 features/support/models/alpha.rb
skalee-thinking-sphinx-1.3.14.1 features/support/models/alpha.rb
thorsson_thinking-sphinx-1.3.18 features/thinking_sphinx/models/alpha.rb
thinking-sphinx-allen-1.3.18.4 features/thinking_sphinx/models/alpha.rb
thinking-sphinx-allen-1.3.18.3 features/thinking_sphinx/models/alpha.rb
thinking-sphinx-allen-1.3.18.2 features/thinking_sphinx/models/alpha.rb
thinking-sphinx-2.0.0.rc1 features/thinking_sphinx/models/alpha.rb
thinking-sphinx-allen-1.3.18.1 features/thinking_sphinx/models/alpha.rb
thinking-sphinx-allen-1.3.18 features/thinking_sphinx/models/alpha.rb
thinking-sphinx-1.3.18 features/thinking_sphinx/models/alpha.rb
josh_cutler-thinking-sphinx-1.3.17 features/thinking_sphinx/models/alpha.rb
hawkerb-thinking-sphinx-1.3.18 features/support/models/alpha.rb
thinking-sphinx-1.3.17 features/thinking_sphinx/models/alpha.rb
warp-thinking-sphinx-1.3.16 features/support/models/alpha.rb
thinking-sphinx-1.3.16 features/support/models/alpha.rb
hawkerb-thinking-sphinx-1.3.17 features/support/models/alpha.rb