diff options
Diffstat (limited to 'vendor/plugins/thinking-sphinx/features/support/models/alpha.rb')
| -rw-r--r-- | vendor/plugins/thinking-sphinx/features/support/models/alpha.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/plugins/thinking-sphinx/features/support/models/alpha.rb b/vendor/plugins/thinking-sphinx/features/support/models/alpha.rb new file mode 100644 index 0000000..0973c1c --- /dev/null +++ b/vendor/plugins/thinking-sphinx/features/support/models/alpha.rb | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | class Alpha < ActiveRecord::Base | ||
| 2 | define_index do | ||
| 3 | indexes :name, :sortable => true | ||
| 4 | |||
| 5 | has value, cost, created_at, created_on | ||
| 6 | |||
| 7 | set_property :field_weights => {"name" => 10} | ||
| 8 | end | ||
| 9 | end | ||
