Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #24 from mkorcy/remove_solrizer-fedora_dependency

Remove dependency on solrizer-fedora, use AF to update index by pid.
  • Loading branch information...
commit bc71cfdf523a950cc658c5c65719dfc4e303c8b8 2 parents b1540be + 6e34c9a
Adam Wead awead authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  bin/solrizer
3  bin/solrizer
View
@@ -90,8 +90,7 @@ begin
puts @msg.headers.inspect
puts "\nPID: #{@msg.headers["pid"]}\n"
if ["addDatastream", "addRelationship","ingest","modifyDatastreamByValue","modifyDatastreamByReference","modifyObject","purgeDatastream","purgeRelationship"].include? method
- solrizer = Solrizer::Fedora::Solrizer.new
- solrizer.solrize @msg.headers["pid"]
+ ActiveFedora::Base.find(@msg.headers["pid"], cast: true).update_index
elsif method == "purgeObject"
ActiveFedora::SolrService.instance.conn.delete_by_id(pid)
else
Please sign in to comment.
Something went wrong with that request. Please try again.