Peer-reviewed code snippets that anyone can edit
A wiki for useful code snippets
Command-line interface to the Apache Solr REST API
r1 r2
1
++ Solr Tool
2
 
1
3
A convenient command-line interface to Apache Solr, built around curl.
2
4
 
3
5
Requires [http://xmlsoft.org/xmllint.html xmllint] - for pretty-printing the output.
4
6
 
~
~
 
14
16
Remaining ARGS are passed to curl. Use {{-F key=value}} to POST form parameters.
15
17
 
16
18
Examples:
17
19
 
18
[code language=bash]
20
[code=bash]
19
21
solr local dataimport -F command=delta-import
20
22
solr local 'core0/select?q=solr'
21
23
solr http://localhost:8983/solr admin/cores -F command=RELOAD -F core=core0
22
24
solr local
Tags added:
Tags removed: