Skip to content

Instantly share code, notes, and snippets.

@adjam
Created July 11, 2017 20:22
Show Gist options
  • Save adjam/7050f101a4b64c3dba7c27781b63f90e to your computer and use it in GitHub Desktop.
Save adjam/7050f101a4b64c3dba7c27781b63f90e to your computer and use it in GitHub Desktop.
Example: add request handler for TRLN argon to Solr at runtime
{
"add-requesthandler" : {
"name" : "/document",
"class" : "solr.SearchHandler",
"defaults" : {
"echoParams" : "explicit",
"fl" : "*",
"rows" : 1,
"q" : "{!term f= id v = $id}"
}
}
}
#!/bin/sh
# NOT VERY CLOUDY EH
curl http://localhost:8983/solr/trln-dev/config -H 'Content-Type: application/json' --data-binary @add-dochandler.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment