Skip to content

Instantly share code, notes, and snippets.

@jprante
Created May 17, 2012 21:47
Show Gist options
  • Save jprante/2721760 to your computer and use it in GitHub Desktop.
Save jprante/2721760 to your computer and use it in GitHub Desktop.
Harvesting an OAI data provider with Elasticsearch in a single line
# see https://github.com/jprante/elasticsearch-river-oai
# harvest
curl -XPUT 'localhost:9200/_river/aachen/_meta' -d '{
"type" : "oai",
"oai" : {
"url" : "http://darwin.bth.rwth-aachen.de/opus3/oai2/oai2.php",
"set" : "pub-type:8"
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment