Sha256: 7719fc5e3dd132eb0998af369dd53589494b135188bf8c7c6f0e41d28ed32e39

Contents?: true

Size: 461 Bytes

Versions: 18

Compression:

Stored size: 461 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 => lambda { |x| x.full_name == 'foobar' },
                                   :is_artist => lambda { |x| true },
                                   :is_artwork => lambda { |x| false }
                                  }
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
mongoid_fulltext-0.6.1 spec/models/filtered_artist.rb
mongoid_fulltext-0.6.0 spec/models/filtered_artist.rb
mongoid_fulltext-0.5.8 spec/models/filtered_artist.rb
mongoid_fulltext-0.5.7 spec/models/filtered_artist.rb
mongoid_fulltext-0.5.6 spec/models/filtered_artist.rb
mongoid_fulltext-0.5.5 spec/models/filtered_artist.rb
mongoid_fulltext-0.5.4 spec/models/filtered_artist.rb
mongoid_fulltext-0.5.3 spec/models/filtered_artist.rb
mongoid_fulltext-0.5.2 spec/models/filtered_artist.rb
mongoid_fulltext-0.5.1 spec/models/filtered_artist.rb
mongoid_fulltext-0.5.0 spec/models/filtered_artist.rb
mongoid_fulltext-0.4.5 spec/models/filtered_artist.rb
mongoid_fulltext-0.4.4 spec/models/filtered_artist.rb
mongoid_fulltext-0.4.3 spec/models/filtered_artist.rb
mongoid_fulltext-0.4.2 spec/models/filtered_artist.rb
mongoid_fulltext-0.4.1 spec/models/filtered_artist.rb
mongoid_fulltext-0.4.0 spec/models/filtered_artist.rb
mongoid_fulltext-0.3.6 spec/models/filtered_artist.rb