Sha256: 3e354634c455cc4e37f295ef97a85ac557265abf4f36be3ccc1b5a8ad81d488f
Contents?: true
Size: 538 Bytes
Versions: 3
Compression:
Stored size: 538 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: ->(_x) { true }, is_awesome: ->(_x) { false } } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid_fulltext-0.8.0 | spec/models/filtered_other.rb |
mongoid_fulltext-0.7.1 | spec/models/filtered_other.rb |
mongoid_fulltext-0.7.0 | spec/models/filtered_other.rb |