Sha256: c06e2b4c4d7077246870f0de514826f7bede5aa0028075ad15d6cf485c299575
Contents?: true
Size: 547 Bytes
Versions: 17
Compression:
Stored size: 547 Bytes
Contents
# This is some other model that lives in the same index with FilteredArtist and FilteredArtwork, # to make sure different filters can co-exist in the same index and are indexed properly. class FilteredOther include Mongoid::Document include Mongoid::FullTextSearch field :name fulltext_search_in :name, :index_name => 'mongoid_fulltext.artworks_and_artists', :filters => { :is_fuzzy => lambda { |x| true }, :is_awesome => lambda { |x| false } } end
Version data entries
17 entries across 17 versions & 1 rubygems