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

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/sunspot-2.2.7/spec/api/query/join_spec.rb
sunspot-2.2.7 spec/api/query/join_spec.rb
sunspot-2.2.6 spec/api/query/join_spec.rb
sunspot-2.2.5 spec/api/query/join_spec.rb
sunspot-2.2.4 spec/api/query/join_spec.rb
sunspot-2.2.3 spec/api/query/join_spec.rb
sunspot-2.2.2 spec/api/query/join_spec.rb
sunspot-2.2.1 spec/api/query/join_spec.rb
sunspot-2.2.0 spec/api/query/join_spec.rb