diff --git a/app/models/package.rb b/app/models/package.rb index fa5a7ec..5c755f5 100644 --- a/app/models/package.rb +++ b/app/models/package.rb @@ -3,7 +3,11 @@ class Package < ActiveRecord::Base # https://github.com/Casecommons/pg_search include PgSearch # TODO: Make search weighted on users' rating - pg_search_scope :general_search, :against => [:name, :description, :long_description] + pg_search_scope :general_search, + :against => [:name, :description, :long_description], + :using => { + :tsearch => {:dictionary => "english"} + } # I am using "destroy_all" here so that when a package gets destroys the # callbacks for all dependent screenshots are executed - thus removing the