Created
July 11, 2017 20:22
-
-
Save adjam/7050f101a4b64c3dba7c27781b63f90e to your computer and use it in GitHub Desktop.
Example: add request handler for TRLN argon to Solr at runtime
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"add-requesthandler" : { | |
"name" : "/document", | |
"class" : "solr.SearchHandler", | |
"defaults" : { | |
"echoParams" : "explicit", | |
"fl" : "*", | |
"rows" : 1, | |
"q" : "{!term f= id v = $id}" | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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