Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Remove dependency on solrizer-fedora, use AF to update index by pid. #24

Merged
merged 1 commit into from

2 participants

@mkorcy
Owner

There doesn't seem to be a version of solrizer-fedora compatible with solrizer 3, but I'm not sure its necessary to update that gem for compatibly with solrizer as it seems like this dependency can be replaced with a call to AF's update_index method.

@awead awead merged commit bc71cfd into projecthydra:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.