You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by sv...@apache.org on 2024/02/02 15:22:58 UTC

svn commit: r1085343 [3/3] - in /sites/solr/guide: ./ solr/9_5/deployment-guide/ solr/9_5/getting-started/ solr/9_5/indexing-guide/ solr/9_5/query-guide/

Modified: sites/solr/guide/solr/9_5/deployment-guide/docker-networking.html
URL: http://svn.apache.org/viewvc/sites/solr/guide/solr/9_5/deployment-guide/docker-networking.html?rev=1085343&r1=1085342&r2=1085343&view=diff
==============================================================================
--- sites/solr/guide/solr/9_5/deployment-guide/docker-networking.html (original)
+++ sites/solr/guide/solr/9_5/deployment-guide/docker-networking.html Fri Feb  2 15:22:57 2024
@@ -1322,7 +1322,7 @@ ssh -n $ZKSOLR3_HOST "docker exec -i zks
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">docker exec -it --user=solr zksolr1 bin/post -c my_collection1 example/exampledocs/manufacturers.xml
+<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">docker exec -it --user=solr zksolr1 bin/solr post -c my_collection1 example/exampledocs/manufacturers.xml
 # /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -classpath /opt/solr/server/lib/ext/*:/opt/solr/server/solr-webapp/webapp/WEB-INF/lib/* -Dauto=yes -Dc=my_collection1 -Ddata=files org.apache.solr.cli.SimplePostTool example/exampledocs/manufacturers.xml
 # SimplePostTool version 9.5.0
 # Posting files to [base] url http://localhost:8983/solr/my_collection1/update...

Modified: sites/solr/guide/solr/9_5/deployment-guide/installing-solr.html
URL: http://svn.apache.org/viewvc/sites/solr/guide/solr/9_5/deployment-guide/installing-solr.html?rev=1085343&r1=1085342&r2=1085343&view=diff
==============================================================================
--- sites/solr/guide/solr/9_5/deployment-guide/installing-solr.html (original)
+++ sites/solr/guide/solr/9_5/deployment-guide/installing-solr.html Fri Feb  2 15:22:57 2024
@@ -1334,8 +1334,8 @@ If you ran through the <a href="../getti
 <dl>
 <dt class="hdlist1">exampledocs</dt>
 <dd>
-<p>This is a small set of simple CSV, XML, and JSON files that can be used with <code>bin/post</code> when first getting started with Solr.
-For more information about using <code>bin/post</code> with these files, see <a href="../indexing-guide/post-tool.html" class="xref page">Post Tool</a>.</p>
+<p>This is a small set of simple CSV, XML, and JSON files that can be used with <code>bin/solr post</code> when first getting started with Solr.
+For more information about using <code>bin/solr post</code> with these files, see <a href="../indexing-guide/post-tool.html" class="xref page">Post Tool</a>.</p>
 </dd>
 <dt class="hdlist1">files</dt>
 <dd>

Modified: sites/solr/guide/solr/9_5/getting-started/tutorial-diy.html
URL: http://svn.apache.org/viewvc/sites/solr/guide/solr/9_5/getting-started/tutorial-diy.html?rev=1085343&r1=1085342&r2=1085343&view=diff
==============================================================================
--- sites/solr/guide/solr/9_5/getting-started/tutorial-diy.html (original)
+++ sites/solr/guide/solr/9_5/getting-started/tutorial-diy.html Fri Feb  2 15:22:57 2024
@@ -1159,9 +1159,9 @@ Choose one of the approaches below and t
 </div>
 <div class="dlist">
 <dl>
-<dt class="hdlist1">Local Files with <code>bin/post</code></dt>
+<dt class="hdlist1">Local Files with <code>bin/solr post</code></dt>
 <dd>
-<p>If you have a local directory of files, the Post Tool (<code>bin/post</code>) can index a directory of files.
+<p>If you have a local directory of files, the Post Tool (<code>bin/solr post</code>) can index a directory of files.
 We saw this in action in our first exercise.</p>
 <div class="paragraph">
 <p>We used only JSON, XML and CSV in our exercises, but the Post Tool can also handle HTML, PDF, Microsoft Office formats (such as MS Word), plain text, and more.</p>
@@ -1172,7 +1172,7 @@ To index it, we would issue a command li
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-console hljs" data-lang="console">$ bin/post -c localDocs ~/Documents</code></pre>
+<pre class="highlightjs highlight"><code class="language-console hljs" data-lang="console">$ bin/solr post -c localDocs ~/Documents</code></pre>
 </div>
 </div>
 <div class="paragraph">
@@ -1210,7 +1210,7 @@ The <code>maxDoc</code> value may be lar
 You can re-post the sample files over and over again as much as you want and <code>numDocs</code> will never increase, because the new documents will constantly be replacing the old.</p>
 </div>
 <div class="paragraph">
-<p>Go ahead and edit any of the existing example data files, change some of the data, and re-run the PostTool (<code>bin/post</code>).
+<p>Go ahead and edit any of the existing example data files, change some of the data, and re-run the PostTool (<code>bin/solr post</code>).
 You&#8217;ll see your changes reflected in subsequent searches.</p>
 </div>
 </div>
@@ -1223,14 +1223,14 @@ Essentially, this will allow you to rein
 </div>
 <div class="paragraph">
 <p>You can delete data by POSTing a delete command to the update URL and specifying the value of the document&#8217;s unique key field, or a query that matches multiple documents (be careful with that one!).
-We can use <code>bin/post</code> to delete documents also if we structure the request properly.</p>
+We can use <code>bin/solr post</code> to delete documents also if we structure the request properly.</p>
 </div>
 <div class="paragraph">
 <p>Execute the following command to delete a specific document:</p>
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-console hljs" data-lang="console">$ bin/post -c localDocs -d "&lt;delete&gt;&lt;id&gt;SP2514N&lt;/id&gt;&lt;/delete&gt;"</code></pre>
+<pre class="highlightjs highlight"><code class="language-console hljs" data-lang="console">$ bin/solr post -c localDocs -d "&lt;delete&gt;&lt;id&gt;SP2514N&lt;/id&gt;&lt;/delete&gt;"</code></pre>
 </div>
 </div>
 <div class="paragraph">
@@ -1238,7 +1238,7 @@ We can use <code>bin/post</code> to dele
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-console hljs" data-lang="console">$ bin/post -c localDocs -d "&lt;delete&gt;&lt;query&gt;*:*&lt;/query&gt;&lt;/delete&gt;"</code></pre>
+<pre class="highlightjs highlight"><code class="language-console hljs" data-lang="console">$ bin/solr post -c localDocs -d "&lt;delete&gt;&lt;query&gt;*:*&lt;/query&gt;&lt;/delete&gt;"</code></pre>
 </div>
 </div>
 <div class="paragraph">

Modified: sites/solr/guide/solr/9_5/getting-started/tutorial-films.html
URL: http://svn.apache.org/viewvc/sites/solr/guide/solr/9_5/getting-started/tutorial-films.html?rev=1085343&r1=1085342&r2=1085343&view=diff
==============================================================================
--- sites/solr/guide/solr/9_5/getting-started/tutorial-films.html (original)
+++ sites/solr/guide/solr/9_5/getting-started/tutorial-films.html Fri Feb  2 15:22:57 2024
@@ -1388,7 +1388,7 @@ Pick one of the formats and index it int
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-console hljs" data-lang="console">$ bin/post -c films example/films/films.json</code></pre>
+<pre class="highlightjs highlight"><code class="language-console hljs" data-lang="console">$ bin/solr post -c films example/films/films.json</code></pre>
 </div>
 </div>
 </div>
@@ -1417,7 +1417,7 @@ Pick one of the formats and index it int
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-console hljs" data-lang="console">$ bin/post -c films example/films/films.xml</code></pre>
+<pre class="highlightjs highlight"><code class="language-console hljs" data-lang="console">$ bin/solr post -c films example/films/films.xml</code></pre>
 </div>
 </div>
 </div>
@@ -1446,7 +1446,7 @@ Pick one of the formats and index it int
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-console hljs" data-lang="console">$ bin/post -c films example/films/films.csv -params "f.genre.split=true&amp;f.directed_by.split=true&amp;f.genre.separator=|&amp;f.directed_by.separator=|"</code></pre>
+<pre class="highlightjs highlight"><code class="language-console hljs" data-lang="console">$ bin/solr post -c films example/films/films.csv -params "f.genre.split=true&amp;f.directed_by.split=true&amp;f.genre.separator=|&amp;f.directed_by.separator=|"</code></pre>
 </div>
 </div>
 </div>
@@ -1489,9 +1489,7 @@ Telling Solr to split these columns this
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-console hljs" data-lang="console">$ bin/post -c films example/films/films.json
-# bin/java -classpath /solr-{solr-full-version}/server/solr-webapp/webapp/WEB-INF/lib/solr-core-{solr-full-version}.jar -Dauto=yes -Dc=films -Ddata=files org.apache.solr.cli.SimplePostTool example/films/films.json
-SimplePostTool version 5.0.0
+<pre class="highlightjs highlight"><code class="language-console hljs" data-lang="console">$ bin/solr post -c films example/films/films.json
 Posting files to [base] url http://localhost:8983/solr/films/update...
 Entering auto mode. File endings considered are xml,json,jsonl,csv,pdf,doc,docx,ppt,pptx,xls,xlsx,odt,odp,ods,ott,otp,ots,rtf,htm,html,txt,log
 POSTing file films.json (application/json) to [base]/json/docs

Modified: sites/solr/guide/solr/9_5/getting-started/tutorial-techproducts.html
URL: http://svn.apache.org/viewvc/sites/solr/guide/solr/9_5/getting-started/tutorial-techproducts.html?rev=1085343&r1=1085342&r2=1085343&view=diff
==============================================================================
--- sites/solr/guide/solr/9_5/getting-started/tutorial-techproducts.html (original)
+++ sites/solr/guide/solr/9_5/getting-started/tutorial-techproducts.html Fri Feb  2 15:22:57 2024
@@ -1283,25 +1283,12 @@ There is one collection created automati
 <p>Your Solr server is up and running, but it doesn&#8217;t contain any data yet, so we can&#8217;t do any queries.</p>
 </div>
 <div class="paragraph">
-<p>Solr includes the <code>bin/post</code> tool in order to facilitate indexing various types of documents easily.
+<p>Solr includes the <code>bin/solr post</code> tool in order to facilitate indexing various types of documents easily.
 We&#8217;ll use this tool for the indexing examples below.</p>
 </div>
 <div class="paragraph">
 <p>You&#8217;ll need a command shell to run some of the following examples, rooted in the Solr install directory; the shell from where you launched Solr works just fine.</p>
 </div>
-<div class="admonitionblock note">
-<table>
-<tr>
-<td class="icon">
-<i class="fa icon-note" title="Note"></i>
-</td>
-<td class="content">
-Currently the <code>bin/post</code> tool does not have a comparable Windows script, but the <code>bin/solr post</code> command is available on Windows.
-See the section <a href="../indexing-guide/post-tool.html" class="xref page">Post Tool</a> for more information.
-</td>
-</tr>
-</table>
-</div>
 <div class="paragraph">
 <p>The data we will index is in the <code>example/exampledocs</code> directory.
 The documents are in a mix of document formats (JSON, CSV, etc.), and fortunately we can index them all at once:</p>
@@ -1309,7 +1296,7 @@ The documents are in a mix of document f
 <div class="listingblock">
 <div class="title">Linux/Mac</div>
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-console hljs" data-lang="console">$ bin/post -c techproducts example/exampledocs/*</code></pre>
+<pre class="highlightjs highlight"><code class="language-console hljs" data-lang="console">$ bin/solr post -c techproducts example/exampledocs/*</code></pre>
 </div>
 </div>
 <div class="listingblock">

Modified: sites/solr/guide/solr/9_5/indexing-guide/indexing-with-tika.html
URL: http://svn.apache.org/viewvc/sites/solr/guide/solr/9_5/indexing-guide/indexing-with-tika.html?rev=1085343&r1=1085342&r2=1085343&view=diff
==============================================================================
--- sites/solr/guide/solr/9_5/indexing-guide/indexing-with-tika.html (original)
+++ sites/solr/guide/solr/9_5/indexing-guide/indexing-with-tika.html Fri Feb  2 15:22:57 2024
@@ -1270,11 +1270,11 @@ Note this includes the path, so if you u
 </ul>
 </div>
 <div class="paragraph">
-<p>You can also use <code>bin/post</code> to do the same thing:</p>
+<p>You can also use <code>bin/solr post</code> to do the same thing:</p>
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">bin/post -c gettingstarted example/exampledocs/solr-word.pdf -params "literal.id=doc1"</code></pre>
+<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">bin/solr post -c gettingstarted example/exampledocs/solr-word.pdf -params "literal.id=doc1"</code></pre>
 </div>
 </div>
 <div class="paragraph">
@@ -1301,7 +1301,7 @@ Here&#8217;s an example:</p>
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">bin/post -c gettingstarted example/exampledocs/solr-word.pdf -params "literal.id=doc1&amp;uprefix=ignored_&amp;fmap.last_modified=last_modified_dt"</code></pre>
+<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">bin/solr post -c gettingstarted example/exampledocs/solr-word.pdf -params "literal.id=doc1&amp;uprefix=ignored_&amp;fmap.last_modified=last_modified_dt"</code></pre>
 </div>
 </div>
 <div class="admonitionblock note">
@@ -2005,7 +2005,7 @@ If <code>literalsOverride=false</code>,
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">bin/post -c gettingstarted example/exampledocs/sample.html -params "literal.id=doc2&amp;captureAttr=true&amp;defaultField=_text_&amp;fmap.div=foo_t&amp;capture=div"</code></pre>
+<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">bin/solr post -c gettingstarted example/exampledocs/sample.html -params "literal.id=doc2&amp;captureAttr=true&amp;defaultField=_text_&amp;fmap.div=foo_t&amp;capture=div"</code></pre>
 </div>
 </div>
 </div>
@@ -2016,7 +2016,7 @@ If <code>literalsOverride=false</code>,
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">bin/post -c gettingstarted -params "literal.id=doc4&amp;captureAttr=true&amp;defaultField=text&amp;capture=div&amp;fmap.div=foo_t&amp;literal.blah_s=Bah" example/exampledocs/sample.html</code></pre>
+<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">bin/solr post -c gettingstarted -params "literal.id=doc4&amp;captureAttr=true&amp;defaultField=text&amp;capture=div&amp;fmap.div=foo_t&amp;literal.blah_s=Bah" example/exampledocs/sample.html</code></pre>
 </div>
 </div>
 <div class="paragraph">
@@ -2031,7 +2031,7 @@ Every instance of the text will be "Bah"
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">bin/post -c gettingstarted -params "literal.id=doc5&amp;captureAttr=true&amp;defaultField=text&amp;capture=div&amp;fmap.div=foo_t&amp;xpath=/xhtml:html/xhtml:body/xhtml:div//node()" example/exampledocs/sample.html</code></pre>
+<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">bin/solr post -c gettingstarted -params "literal.id=doc5&amp;captureAttr=true&amp;defaultField=text&amp;capture=div&amp;fmap.div=foo_t&amp;xpath=/xhtml:html/xhtml:body/xhtml:div//node()" example/exampledocs/sample.html</code></pre>
 </div>
 </div>
 </div>
@@ -2054,7 +2054,7 @@ You might want to do this if you&#8217;r
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">bin/post -c gettingstarted -params "extractOnly=true&amp;wt=ruby&amp;indent=true" -out yes example/exampledocs/sample.html</code></pre>
+<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">bin/solr post -c gettingstarted -params "extractOnly=true&amp;wt=ruby&amp;indent=true" -out yes example/exampledocs/sample.html</code></pre>
 </div>
 </div>
 </div>

Modified: sites/solr/guide/solr/9_5/indexing-guide/post-tool.html
URL: http://svn.apache.org/viewvc/sites/solr/guide/solr/9_5/indexing-guide/post-tool.html?rev=1085343&r1=1085342&r2=1085343&view=diff
==============================================================================
--- sites/solr/guide/solr/9_5/indexing-guide/post-tool.html (original)
+++ sites/solr/guide/solr/9_5/indexing-guide/post-tool.html Fri Feb  2 15:22:57 2024
@@ -1111,11 +1111,7 @@
 <div id="preamble">
 <div class="sectionbody">
 <div class="paragraph">
-<p>Solr includes a simple command line tool for POSTing various types of content to a Solr server.</p>
-</div>
-<div class="paragraph">
-<p>The tool is <code>bin/solr post</code>.
-The bin/solr post tool is a Unix shell script; for Windows (non-Cygwin) usage,use <code>bin/solr.cmd post</code>.</p>
+<p>Solr includes a simple command line tool for POSTing various types of content to a Solr server that is part of the <code>bin/solr</code> CLI.</p>
 </div>
 <div class="admonitionblock note">
 <table>
@@ -1136,7 +1132,7 @@ This tool is meant for use by new users
 <i class="fa icon-note" title="Note"></i>
 </td>
 <td class="content">
-You may be familiar with SimplePostTool and the bin/post Unix shell script.  While this is still available, it is deprecated and will be removed in Solr 10.
+You may be familiar with SimplePostTool and the <code>bin/post</code> Unix shell script.  While this is still available, it is deprecated and will be removed in Solr 10.
 </td>
 </tr>
 </table>
@@ -1159,7 +1155,10 @@ The <code>-help</code> (or simply <code>
 <h2 id="using-the-binsolr-post-tool"><a class="anchor" href="#using-the-binsolr-post-tool"></a>Using the bin/solr post Tool</h2>
 <div class="sectionbody">
 <div class="paragraph">
-<p>Specifying the full update <code>url</code> is <strong>mandatory</strong> when using <code>bin/solr post</code>.</p>
+<p>You must either specify <code>url</code> that is the full path to the update handler or provide a <code>c</code> collection/core name when using <code>bin/solr post</code>.</p>
+</div>
+<div class="paragraph">
+<p>This specifies the same target collection: <code>-url <a href="http://localhost:8983/gettingstarted/update" class="bare">http://localhost:8983/gettingstarted/update</a></code> or <code>-c gettingstarted</code>.</p>
 </div>
 <div class="paragraph">
 <p>The basic usage of <code>bin/solr post</code> is:</p>
@@ -1248,7 +1247,7 @@ This section presents several examples.<
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">bin/solr post -url http://localhost:8983/solr/gettingstarted/update -filetypes json,csv .</code></pre>
+<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">bin/solr post -c gettingstarted -filetypes json,csv .</code></pre>
 </div>
 </div>
 <div class="paragraph">

Modified: sites/solr/guide/solr/9_5/query-guide/spatial-search.html
URL: http://svn.apache.org/viewvc/sites/solr/guide/solr/9_5/query-guide/spatial-search.html?rev=1085343&r1=1085342&r2=1085343&view=diff
==============================================================================
--- sites/solr/guide/solr/9_5/query-guide/spatial-search.html (original)
+++ sites/solr/guide/solr/9_5/query-guide/spatial-search.html Fri Feb  2 15:22:57 2024
@@ -1205,11 +1205,11 @@ However, it&#8217;s much bulkier than th
 <div class="sect2">
 <h3 id="indexing-geojson-and-wkt"><a class="anchor" href="#indexing-geojson-and-wkt"></a>Indexing GeoJSON and WKT</h3>
 <div class="paragraph">
-<p>Using the <code>bin/post</code> tool:</p>
+<p>Using the <code>bin/solr post</code> tool:</p>
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-text hljs" data-lang="text">bin/post -type "application/json" -url "http://localhost:8983/solr/mycollection/update?format=geojson" /path/to/geojson.file</code></pre>
+<pre class="highlightjs highlight"><code class="language-text hljs" data-lang="text">bin/solr post -type "application/json" -url "http://localhost:8983/solr/mycollection/update?format=geojson" /path/to/geojson.file</code></pre>
 </div>
 </div>
 <div class="paragraph">

Modified: sites/solr/guide/solr/9_5/query-guide/tagger-handler.html
URL: http://svn.apache.org/viewvc/sites/solr/guide/solr/9_5/query-guide/tagger-handler.html?rev=1085343&r1=1085342&r2=1085343&view=diff
==============================================================================
--- sites/solr/guide/solr/9_5/query-guide/tagger-handler.html (original)
+++ sites/solr/guide/solr/9_5/query-guide/tagger-handler.html Fri Feb  2 15:22:57 2024
@@ -1510,11 +1510,11 @@ should be almost 7MB file expanding to a
 population.</p>
 </div>
 <div class="paragraph">
-<p>Using bin/post:</p>
+<p>Using bin/solr post:</p>
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">bin/post -c geonames -type text/csv \
+<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">bin/solr post -c geonames -type text/csv \
   -params 'optimize=true&amp;maxSegments=1&amp;separator=%09&amp;encapsulator=%00&amp;fieldnames=id,name,,alternative_names,latitude,longitude,,,countrycode,,,,,,population,elevation,,timezone,lastupdate' \
   /tmp/cities1000.txt</code></pre>
 </div>