Skip to content

Instantly share code, notes, and snippets.

View amalinovskiy's full-sized avatar

Anton Malinovskiy amalinovskiy

  • Amazon
  • Barcelona
View GitHub Profile
@amalinovskiy
amalinovskiy / SolrExporter.groovy
Created November 16, 2016 12:42
Export documents from Solr core to XML format
#!/usr/bin/env groovy
/**
* Usage: ./SolrExporter.groovy query sort url [url]
*
* ./SolrExporter.groovy "id:12345" "id" "http://your.solr.host:8983/solr/core/"
*
* ./SolrExporter.groovy "id:12345" "id" "http://old.solr.host:8983/solr/core/" "http://new.solr.host:8983/solr/core/"
*
*