Sha256: eba9cd9d1a58883d78c595e1d78c3241e4170f2a3b852305e6aacf5232564c22
Contents?: true
Size: 409 Bytes
Versions: 2
Compression:
Stored size: 409 Bytes
Contents
Indexers.define :shop do mappings do properties :name end serialize do |record| name record.name end search do |*args| options = args.extract_options! term = args.first query do if term.present? match do name do query term type 'phrase_prefix' end end else match_all end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
indexers-4.1.0.1 | test/dummy/app/indexers/shop_indexer.rb |
indexers-4.1.0.0 | test/dummy/app/indexers/shop_indexer.rb |