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...
2 parents b1540be + 6e34c9a commit bc71cfdf523a950cc658c5c65719dfc4e303c8b8 @awead awead committed Jan 22, 2014
Showing with 1 addition and 2 deletions.
  1. +1 −2 bin/solrizer
View
3 bin/solrizer
@@ -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

0 comments on commit bc71cfd

Please sign in to comment.