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