Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>With the examples comes a <code>post.jar</code> (see folder <code>example\exampledocs</code> of the <code>apache-solr-X.X.X.zip</code>):</p> <p><code>java -jar post.jar -h</code></p> <pre><code>This is a simple command line tool for POSTing raw data to a Solr port. Data can be read from files specified as commandline args, as raw commandline arg strings, or via STDIN. Examples: java -jar post.jar *.xml java -Ddata=args -jar post.jar '&lt;delete&gt;&lt;id&gt;42&lt;/id&gt;&lt;/delete&gt;' java -Ddata=stdin -jar post.jar &lt; hd.xml java -Durl=http://localhost:8983/solr/update/csv -Dtype=text/csv -jar post.jar *.csv java -Durl=http://localhost:8983/solr/update/json -Dtype=application/json -jar post.jar *.json java -Durl=http://localhost:8983/solr/update/extract?literal.id=a -Dtype=application/pdf -jar post.jar a.pdf Other options controlled by System Properties include the Solr URL to POST to, the Content-Type of the data, whether a commit or optimize should be executed, and whether the response should be written to STDOUT. These are the defaults for all System Properties: -Ddata=files -Dtype=application/xml -Durl=http://localhost:8983/solr/update -Dcommit=yes -Doptimize=no -Dout=no </code></pre> <p>OR</p> <p>The Windows PowerShell 3.0 has an <code>Invoke-WebRequest</code> command which for sure could be used for that. See <a href="http://rambletech.wordpress.com/2011/09/21/windows-powershell-v3-includes-command-like-wgetcurl/" rel="noreferrer">this blog post</a>.</p> <p><img src="https://i.stack.imgur.com/EhYUn.png" alt="Invoke-WebRequest"></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload