Skip to content

Commit

Permalink
Update query to work with Solr 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Jan 8, 2018
1 parent 704a0c1 commit b724c86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/blacklight/solr/search_builder_behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def add_query_to_solr(solr_parameters)
end.join(" AND ")
end

solr_parameters[:defType] = 'lucene'
solr_parameters[:spellcheck] = 'false'
elsif blacklight_params[:q]
solr_parameters[:q] = blacklight_params[:q]
Expand Down
2 changes: 1 addition & 1 deletion tasks/blacklight.rake
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ EngineCart.fingerprint_proc = EngineCart.rails_fingerprint_proc

desc "Run test suite"
task ci: ['blacklight:generate'] do
SolrWrapper.wrap(version: '7.1.0') do |solr|
SolrWrapper.wrap do |solr|
solr.with_collection(name: 'blacklight-core', dir: File.join(File.expand_path("..", File.dirname(__FILE__)), '.internal_test_app', 'solr', 'conf')) do
within_test_app do
system "RAILS_ENV=test rake blacklight:index:seed"
Expand Down

0 comments on commit b724c86

Please sign in to comment.