From 28d6bca3df09751f998a8c137eef0eb5d2d95002 Mon Sep 17 00:00:00 2001 From: yuanke <249218296@qq.com> Date: Sun, 9 Oct 2016 13:29:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E8=AF=BE=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/syllabus.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/syllabus.rb b/app/models/syllabus.rb index fff88c83f..5314f8dbd 100644 --- a/app/models/syllabus.rb +++ b/app/models/syllabus.rb @@ -9,9 +9,9 @@ class Syllabus < ActiveRecord::Base Elasticsearch::Model::Response::Response.__send__ :include, Elasticsearch::Model::Response::Pagination::Kaminari settings index: { number_of_shards: 5 } do mappings dynamic: 'false' do - indexes :name, analyzer: 'smartcn',index_options: 'offsets' + indexes :title, analyzer: 'smartcn',index_options: 'offsets' indexes :description, analyzer: 'smartcn',index_options: 'offsets' - indexes :updated_on, index:"not_analyzed", type:'date' + indexes :updated_at, index:"not_analyzed", type:'date' end end acts_as_taggable