Sha256: bc78bf9fd213ad4f709c4455b319ba3f4cade471503075e568b643cbb273e8d0
Contents?: true
Size: 416 Bytes
Versions: 1
Compression:
Stored size: 416 Bytes
Contents
class User < ActiveRecord::Base # include Elasticsearch::Model # settings index: { number_of_shards: 1 } do # mappings dynamic: 'false' do # indexes :id, type: 'integer' # indexes :is_admin, type: 'boolean', index: 'not_analyzed' # indexes :name, type: 'string', dynamic: 'standard' # indexes :email, type: 'string', dynamic: 'standard' # end # end include EsSearchable end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
es_searchable-0.1.1 | test/dummy/app/models/user.rb |