Commit 26349c35 by vulehuan

product: not autoindex

parent 436114a7
...@@ -8,7 +8,7 @@ class Product < ActiveRecord::Base ...@@ -8,7 +8,7 @@ class Product < ActiveRecord::Base
validates :price, :product_category_id, :user_id, numericality: true validates :price, :product_category_id, :user_id, numericality: true
validates :price_currency, presence: true, if: "price > 0" validates :price_currency, presence: true, if: "price > 0"
searchable do searchable :auto_index => false do
text :name, :description text :name, :description
string :headline, :code, :condition, :price_currency string :headline, :code, :condition, :price_currency
double :price double :price
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment