Sha256: f35e2945de688f1ba85ac5b1e30653648c979b3da3d7b7ef23d7c69476bf3cf8
Contents?: true
Size: 429 Bytes
Versions: 1
Compression:
Stored size: 429 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongoid_fulltext-0.8.2 | spec/models/filtered_artist.rb |