I am trying to use SolrConfig API
to override SolrConfig.xml
file, but failed. Cmd doesn't allow to use multi-line commands. Either way, I'd rather do everything from the SolrJ API
, because my entire project is written in Java. Could Someone please tutor me briefly on how is that done?
If not, can you please explain how do I write multiple line commands? Edit: I should have included the command I tried running, sorry. this command is used to create a request handler:
curl http://localhost:8983/solr/techproducts/config -H 'Content-type:application/json' -d '{
"add-requesthandler" : {
"name": "/mypath",
"class":"solr.DumpRequestHandler",
"defaults":{ "x":"y" ,"a":"b", "wt":"json", "indent":true },
"useParams":"x"
}
}'
and the cmd takes it as one line as a time. Is this code even for cmd? honestly though, I don't get the syntax in general.