Sha256: b4276f1672255980c6e71c7cd29cda0f7f703f41f221d639618ef278abc4538b
Contents?: true
Size: 504 Bytes
Versions: 1
Compression:
Stored size: 504 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongoid_fulltext-0.8.2 | spec/models/filtered_other.rb |