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

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