Skip to content

Commit

Permalink
Merge pull request #24 from mkorcy/remove_solrizer-fedora_dependency
Browse files Browse the repository at this point in the history
Remove dependency on solrizer-fedora, use AF to update index by pid.
  • Loading branch information
awead committed Jan 22, 2014
2 parents b1540be + 6e34c9a commit bc71cfd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/solrizer
Expand Up @@ -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
Expand Down

0 comments on commit bc71cfd

Please sign in to comment.