Sha256: c4894c5f4b1790ada58f246ad18e002d9b6cfe4b45c7c18cceac1a008ebd4e6b
Contents?: true
Size: 595 Bytes
Versions: 9
Compression:
Stored size: 595 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 connection.should 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 connection.should 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
9 entries across 9 versions & 2 rubygems