diff options
Diffstat (limited to 'vendor/plugins/thinking-sphinx/features/support/models')
16 files changed, 0 insertions, 118 deletions
diff --git a/vendor/plugins/thinking-sphinx/features/support/models/alpha.rb b/vendor/plugins/thinking-sphinx/features/support/models/alpha.rb deleted file mode 100644 index 0973c1c..0000000 --- a/vendor/plugins/thinking-sphinx/features/support/models/alpha.rb +++ /dev/null | |||
| @@ -1,9 +0,0 @@ | |||
| 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 | ||
diff --git a/vendor/plugins/thinking-sphinx/features/support/models/animal.rb b/vendor/plugins/thinking-sphinx/features/support/models/animal.rb deleted file mode 100644 index 75f8cc5..0000000 --- a/vendor/plugins/thinking-sphinx/features/support/models/animal.rb +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | class Animal < ActiveRecord::Base | ||
| 2 | define_index do | ||
| 3 | indexes name, :sortable => true | ||
| 4 | end | ||
| 5 | end | ||
diff --git a/vendor/plugins/thinking-sphinx/features/support/models/beta.rb b/vendor/plugins/thinking-sphinx/features/support/models/beta.rb deleted file mode 100644 index 096a78c..0000000 --- a/vendor/plugins/thinking-sphinx/features/support/models/beta.rb +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | class Beta < ActiveRecord::Base | ||
| 2 | define_index do | ||
| 3 | indexes :name, :sortable => true | ||
| 4 | |||
| 5 | set_property :delta => true | ||
| 6 | end | ||
| 7 | end | ||
diff --git a/vendor/plugins/thinking-sphinx/features/support/models/box.rb b/vendor/plugins/thinking-sphinx/features/support/models/box.rb deleted file mode 100644 index bd948c4..0000000 --- a/vendor/plugins/thinking-sphinx/features/support/models/box.rb +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | class Box < ActiveRecord::Base | ||
| 2 | define_index do | ||
| 3 | indexes width, :as => :width_field | ||
| 4 | |||
| 5 | has width, length, depth | ||
| 6 | has [width, length, depth], :as => :dimensions | ||
| 7 | end | ||
| 8 | end | ||
diff --git a/vendor/plugins/thinking-sphinx/features/support/models/cat.rb b/vendor/plugins/thinking-sphinx/features/support/models/cat.rb deleted file mode 100644 index f6cf75a..0000000 --- a/vendor/plugins/thinking-sphinx/features/support/models/cat.rb +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | class Cat < Animal | ||
| 2 | # | ||
| 3 | end | ||
diff --git a/vendor/plugins/thinking-sphinx/features/support/models/category.rb b/vendor/plugins/thinking-sphinx/features/support/models/category.rb deleted file mode 100644 index ea52b65..0000000 --- a/vendor/plugins/thinking-sphinx/features/support/models/category.rb +++ /dev/null | |||
| @@ -1,4 +0,0 @@ | |||
| 1 | class Category < ActiveRecord::Base | ||
| 2 | has_many :posts | ||
| 3 | has_many :comments | ||
| 4 | end \ No newline at end of file | ||
diff --git a/vendor/plugins/thinking-sphinx/features/support/models/comment.rb b/vendor/plugins/thinking-sphinx/features/support/models/comment.rb deleted file mode 100644 index a93451c..0000000 --- a/vendor/plugins/thinking-sphinx/features/support/models/comment.rb +++ /dev/null | |||
| @@ -1,10 +0,0 @@ | |||
| 1 | class Comment < ActiveRecord::Base | ||
| 2 | belongs_to :post | ||
| 3 | belongs_to :category | ||
| 4 | |||
| 5 | define_index do | ||
| 6 | indexes :content | ||
| 7 | |||
| 8 | has category.name, :facet => true, :as => :category_name, :type => :string | ||
| 9 | end | ||
| 10 | end | ||
diff --git a/vendor/plugins/thinking-sphinx/features/support/models/delayed_beta.rb b/vendor/plugins/thinking-sphinx/features/support/models/delayed_beta.rb deleted file mode 100644 index ccd9846..0000000 --- a/vendor/plugins/thinking-sphinx/features/support/models/delayed_beta.rb +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | class DelayedBeta < ActiveRecord::Base | ||
| 2 | define_index do | ||
| 3 | indexes :name, :sortable => true | ||
| 4 | |||
| 5 | set_property :delta => :delayed | ||
| 6 | end | ||
| 7 | end | ||
diff --git a/vendor/plugins/thinking-sphinx/features/support/models/developer.rb b/vendor/plugins/thinking-sphinx/features/support/models/developer.rb deleted file mode 100644 index d461ebc..0000000 --- a/vendor/plugins/thinking-sphinx/features/support/models/developer.rb +++ /dev/null | |||
| @@ -1,12 +0,0 @@ | |||
| 1 | class Developer < ActiveRecord::Base | ||
| 2 | has_many :taggings, :as => :taggable | ||
| 3 | has_many :tags, :through => :taggings | ||
| 4 | |||
| 5 | define_index do | ||
| 6 | indexes country, :facet => true | ||
| 7 | indexes state, :facet => true | ||
| 8 | has age, :facet => true | ||
| 9 | has tags(:id), :as => :tag_ids, :facet => true | ||
| 10 | facet city | ||
| 11 | end | ||
| 12 | end \ No newline at end of file | ||
diff --git a/vendor/plugins/thinking-sphinx/features/support/models/extensible_beta.rb b/vendor/plugins/thinking-sphinx/features/support/models/extensible_beta.rb deleted file mode 100644 index 40b64f5..0000000 --- a/vendor/plugins/thinking-sphinx/features/support/models/extensible_beta.rb +++ /dev/null | |||
| @@ -1,9 +0,0 @@ | |||
| 1 | require File.join(File.dirname(__FILE__), "..", "lib", "generic_delta_handler") | ||
| 2 | |||
| 3 | class ExtensibleBeta < ActiveRecord::Base | ||
| 4 | define_index do | ||
| 5 | indexes :name, :sortable => true | ||
| 6 | |||
| 7 | set_property :delta => GenericDeltaHandler | ||
| 8 | end | ||
| 9 | end | ||
diff --git a/vendor/plugins/thinking-sphinx/features/support/models/gamma.rb b/vendor/plugins/thinking-sphinx/features/support/models/gamma.rb deleted file mode 100644 index 5e9d259..0000000 --- a/vendor/plugins/thinking-sphinx/features/support/models/gamma.rb +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | class Gamma < ActiveRecord::Base | ||
| 2 | define_index do | ||
| 3 | indexes :name, :sortable => true | ||
| 4 | end | ||
| 5 | end | ||
diff --git a/vendor/plugins/thinking-sphinx/features/support/models/person.rb b/vendor/plugins/thinking-sphinx/features/support/models/person.rb deleted file mode 100644 index 62a0a96..0000000 --- a/vendor/plugins/thinking-sphinx/features/support/models/person.rb +++ /dev/null | |||
| @@ -1,9 +0,0 @@ | |||
| 1 | class Person < ActiveRecord::Base | ||
| 2 | define_index do | ||
| 3 | indexes first_name, last_name, :sortable => true | ||
| 4 | |||
| 5 | has [first_name, middle_initial, last_name], :as => :name_sort | ||
| 6 | has birthday | ||
| 7 | has gender, :facet => true | ||
| 8 | end | ||
| 9 | end | ||
diff --git a/vendor/plugins/thinking-sphinx/features/support/models/post.rb b/vendor/plugins/thinking-sphinx/features/support/models/post.rb deleted file mode 100644 index 430d17c..0000000 --- a/vendor/plugins/thinking-sphinx/features/support/models/post.rb +++ /dev/null | |||
| @@ -1,16 +0,0 @@ | |||
| 1 | class Post < ActiveRecord::Base | ||
| 2 | has_many :comments, :dependent => :destroy | ||
| 3 | has_many :taggings, :as => :taggable | ||
| 4 | has_many :tags, :through => :taggings | ||
| 5 | belongs_to :category | ||
| 6 | |||
| 7 | define_index do | ||
| 8 | indexes subject | ||
| 9 | indexes content | ||
| 10 | indexes tags.text, :as => :tags | ||
| 11 | indexes comments.content, :as => :comments | ||
| 12 | |||
| 13 | has comments(:id), :as => :comment_ids, :source => :ranged_query | ||
| 14 | has category.name, :facet => true, :as => :category_name, :type => :string | ||
| 15 | end | ||
| 16 | end | ||
diff --git a/vendor/plugins/thinking-sphinx/features/support/models/tag.rb b/vendor/plugins/thinking-sphinx/features/support/models/tag.rb deleted file mode 100644 index 30992e8..0000000 --- a/vendor/plugins/thinking-sphinx/features/support/models/tag.rb +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | class Tag < ActiveRecord::Base | ||
| 2 | belongs_to :post | ||
| 3 | end | ||
diff --git a/vendor/plugins/thinking-sphinx/features/support/models/tagging.rb b/vendor/plugins/thinking-sphinx/features/support/models/tagging.rb deleted file mode 100644 index 33daf86..0000000 --- a/vendor/plugins/thinking-sphinx/features/support/models/tagging.rb +++ /dev/null | |||
| @@ -1,4 +0,0 @@ | |||
| 1 | class Tagging < ActiveRecord::Base | ||
| 2 | belongs_to :tag | ||
| 3 | belongs_to :taggable, :polymorphic => true | ||
| 4 | end | ||
diff --git a/vendor/plugins/thinking-sphinx/features/support/models/theta.rb b/vendor/plugins/thinking-sphinx/features/support/models/theta.rb deleted file mode 100644 index 0ce91d6..0000000 --- a/vendor/plugins/thinking-sphinx/features/support/models/theta.rb +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | class Theta < ActiveRecord::Base | ||
| 2 | define_index do | ||
| 3 | indexes :name, :sortable => true | ||
| 4 | |||
| 5 | set_property :delta => :datetime, :threshold => 1.hour | ||
| 6 | end | ||
| 7 | end | ||
