Skip to content

Instantly share code, notes, and snippets.

@jcoyne
Last active November 29, 2018 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcoyne/1d66e4c190fa411ebbaf4208db275d39 to your computer and use it in GitHub Desktop.
Save jcoyne/1d66e4c190fa411ebbaf4208db275d39 to your computer and use it in GitHub Desktop.
Argo indexing tests
File.open('new-qq613vj0238.txt', 'w') do |file|
h = Dor.find("druid:qq613vj0238").to_solr.stringify_keys
file.puts JSON.pretty_generate(h)
end
cat old-qq613vj0238.txt | jq '.' --sort-keys > old-sorted.txt
cat new-qq613vj0238.txt | jq '.' --sort-keys > new-sorted.txt
diff new-sorted.txt old-sorted.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment