|
|
|
@ -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
|
|
|
|
|