Sha256: b03c66fe77970e20a0f430d494cbbde185d54bd41c635ccf3186f478d7a52453
Contents?: true
Size: 463 Bytes
Versions: 3
Compression:
Stored size: 463 Bytes
Contents
class FilteredArtist include Mongoid::Document include Mongoid::FullTextSearch field :full_name fulltext_search_in :full_name, index_name: 'mongoid_fulltext.artworks_and_artists', filters: { is_foobar: ->(x) { x.full_name == 'foobar' }, is_artist: ->(_x) { true }, is_artwork: ->(_x) { false } } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid_fulltext-0.8.0 | spec/models/filtered_artist.rb |
mongoid_fulltext-0.7.1 | spec/models/filtered_artist.rb |
mongoid_fulltext-0.7.0 | spec/models/filtered_artist.rb |