Navigation Menu

Skip to content

Commit

Permalink
We need to pass a string to the query_parser_escape method.
Browse files Browse the repository at this point in the history
  • Loading branch information
ialiendeg authored and brauliobo committed May 23, 2012
1 parent 832aca3 commit 31a85c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/solr.rake
Expand Up @@ -153,7 +153,7 @@ namespace :solr do
models.each do |model|
if clear_first
puts "Clearing index for #{model}..."
ActsAsSolr::Post.execute(Solr::Request::Delete.new(:query => "#{model.solr_configuration[:type_field]}:#{Solr::Util.query_parser_escape(model)}"))
ActsAsSolr::Post.execute(Solr::Request::Delete.new(:query => "#{model.solr_configuration[:type_field]}:#{Solr::Util.query_parser_escape(model.name)}"))
ActsAsSolr::Post.execute(Solr::Request::Commit.new)
end

Expand Down

0 comments on commit 31a85c6

Please sign in to comment.