spec/api/query/fulltext_examples.rb in sunspot-2.0.0 vs spec/api/query/fulltext_examples.rb in sunspot-2.1.0
- old
+ new
@@ -8,25 +8,25 @@
it 'ignores keywords if empty' do
search do
keywords ''
end
- connection.should_not have_last_search_with(:defType => 'dismax')
+ connection.should_not have_last_search_with(:defType => 'edismax')
end
it 'ignores keywords if nil' do
search do
keywords nil
end
- connection.should_not have_last_search_with(:defType => 'dismax')
+ connection.should_not have_last_search_with(:defType => 'edismax')
end
it 'ignores keywords with only whitespace' do
search do
keywords " \t"
end
- connection.should_not have_last_search_with(:defType => 'dismax')
+ connection.should_not have_last_search_with(:defType => 'edismax')
end
it 'gracefully ignores keywords block if keywords ignored' do
search do
keywords(nil) { fields(:title) }
@@ -35,10 +35,10 @@
it 'sets default query parser to dismax when keywords used' do
search do
keywords 'keyword search'
end
- connection.should have_last_search_with(:defType => 'dismax')
+ connection.should have_last_search_with(:defType => 'edismax')
end
it 'searches types in filter query if keywords used' do
search do
keywords 'keyword search'