From 4bd16f053847f2efe347ebda9136ef2233ee0d2c Mon Sep 17 00:00:00 2001 From: hukl Date: Tue, 28 Apr 2009 00:15:53 +0200 Subject: added thinking_sphinx plugin for fulltext search on nodes and heads --- vendor/plugins/thinking-sphinx/features/support/models/alpha.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 vendor/plugins/thinking-sphinx/features/support/models/alpha.rb (limited to 'vendor/plugins/thinking-sphinx/features/support/models/alpha.rb') 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 @@ +class Alpha < ActiveRecord::Base + define_index do + indexes :name, :sortable => true + + has value, cost, created_at, created_on + + set_property :field_weights => {"name" => 10} + end +end -- cgit v1.3