Sha256: bed792f619608bab1a34743b18edaf024de7dde6c58b447272b62c2a6102911d
Contents?: true
Size: 462 Bytes
Versions: 1
Compression:
Stored size: 462 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.empty? }, exhibitions: ->(x) { [x.exhibitions].flatten } } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongoid_fulltext-0.8.2 | spec/models/partitioned_artist.rb |