Sha256: 904ab803175678a84793779632e342f4e2926f77b002641ec5ffd2d6019ceed6
Contents?: true
Size: 603 Bytes
Versions: 4
Compression:
Stored size: 603 Bytes
Contents
require File.expand_path('spec_helper', File.dirname(__FILE__)) describe 'join' do it 'should search by join' do session.search PhotoContainer do with(:caption, 'blah') end expect(connection).to have_last_search_including( :fq, "{!join from=photo_container_id_i to=id_i}caption_s:blah") end it 'should greater_than search by join' do session.search PhotoContainer do with(:photo_rating).greater_than(3) end expect(connection).to have_last_search_including( :fq, "{!join from=photo_container_id_i to=id_i}average_rating_ft:{3\\.0 TO *}") end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sunspot-2.5.0 | spec/api/query/join_spec.rb |
sunspot-2.4.0 | spec/api/query/join_spec.rb |
sunspot-2.3.0 | spec/api/query/join_spec.rb |
sunspot-2.2.8 | spec/api/query/join_spec.rb |