parent
6c02115f3f
commit
2fbad38522
|
@ -46,7 +46,7 @@ class Attachment < ActiveRecord::Base
|
|||
settings index: { number_of_shards: 5 } do
|
||||
mappings dynamic: 'false' do
|
||||
indexes :filename, analyzer: 'smartcn',index_options: 'offsets'
|
||||
indexes :downloads, analyzer: 'smartcn',index_options: 'offsets'
|
||||
indexes :downloads, index:"not_analyzed",index_options: 'offsets'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ class Course < ActiveRecord::Base
|
|||
mappings dynamic: 'false' do
|
||||
indexes :name, analyzer: 'smartcn',index_options: 'offsets'
|
||||
indexes :description, analyzer: 'smartcn',index_options: 'offsets'
|
||||
indexes :updated_at, analyzer: 'smartcn',index_options: 'offsets',type:"date"
|
||||
indexes :updated_at, index:"not_analyzed",type:"date"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ class Memo < ActiveRecord::Base
|
|||
mappings dynamic: 'false' do
|
||||
indexes :subject, analyzer: 'smartcn',index_options: 'offsets'
|
||||
indexes :content, analyzer: 'smartcn',index_options: 'offsets'
|
||||
indexes :updated_at, type:'date'
|
||||
indexes :updated_at,index:"not_analyzed" ,type:'date'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ class Project < ActiveRecord::Base
|
|||
mappings dynamic: 'false' do
|
||||
indexes :name, analyzer: 'smartcn',index_options: 'offsets'
|
||||
indexes :description, analyzer: 'smartcn',index_options: 'offsets'
|
||||
indexes :updated_on, analyzer: 'smartcn',index_options: 'offsets', type:'date'
|
||||
indexes :updated_on, index:"not_analyzed", type:'date'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ class User < Principal
|
|||
indexes :login, analyzer: 'smartcn',index_options: 'offsets'
|
||||
indexes :firstname, analyzer: 'smartcn',index_options: 'offsets'
|
||||
indexes :lastname, analyzer: 'smartcn',index_options: 'offsets'
|
||||
indexes :last_login_on, analyzer: 'smartcn',index_options: 'offsets',type: 'date'
|
||||
indexes :last_login_on, index:"not_analyzed",type: 'date'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue