test/test_helper.rb in searchkick-0.8.4 vs test/test_helper.rb in searchkick-0.8.5
- old
+ new
@@ -51,10 +51,11 @@
field :orders_count, type: Integer
field :price, type: Integer
field :color
field :latitude, type: BigDecimal
field :longitude, type: BigDecimal
+ field :description
end
class Store
include Mongoid::Document
@@ -93,10 +94,11 @@
t.integer :orders_count
t.integer :price
t.string :color
t.decimal :latitude, precision: 10, scale: 7
t.decimal :longitude, precision: 10, scale: 7
+ t.text :description
t.timestamps
end
ActiveRecord::Migration.create_table :stores do |t|
t.string :name
@@ -144,10 +146,11 @@
text_middle: [:name],
text_end: [:name],
word_start: [:name],
word_middle: [:name],
word_end: [:name],
- highlight: [:name]
+ highlight: [:name],
+ unsearchable: [:description]
attr_accessor :conversions, :user_ids, :aisle
def search_data
serializable_hash.except("id").merge(