Sha256: 27505df8d4f64d87bb377a3b09a46d0ea0d8ced460f1271d1e3258bf189a57b6
Contents?: true
Size: 463 Bytes
Versions: 3
Compression:
Stored size: 463 Bytes
Contents
class PartitionedArtist include Mongoid::Document include Mongoid::FullTextSearch field :full_name field :exhibitions, type: Array, default: [] fulltext_search_in :full_name, index_name: 'mongoid_fulltext.partitioned_artists', filters: { has_exhibitions: ->(x) { x.exhibitions.size > 0 }, exhibitions: ->(x) { [x.exhibitions].flatten } } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid_fulltext-0.8.0 | spec/models/partitioned_artist.rb |
mongoid_fulltext-0.7.1 | spec/models/partitioned_artist.rb |
mongoid_fulltext-0.7.0 | spec/models/partitioned_artist.rb |