<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ingest APIs Archives - SearchStax Docs</title>
	<atom:link href="https://demo.searchstax.com/docs/searchstudio_categories/ingest-apis/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Documentation</description>
	<lastBuildDate>Wed, 14 May 2025 18:24:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>

<image>
	<url>https://demo.searchstax.com/docs/wp-content/uploads/2023/10/cropped-favicon-32x32.png</url>
	<title>Ingest APIs Archives - SearchStax Docs</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Ingest API</title>
		<link>https://demo.searchstax.com/docs/searchstudio/searchstax-studio-ingest-api/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Mon, 10 Jan 2022 20:41:10 +0000</pubDate>
				<guid isPermaLink="false">https://demo.searchstax.com/docs/?post_type=searchstudio&#038;p=10481</guid>

					<description><![CDATA[<p>Ingest API Site Search &#62; App Settings &#62; Data Management &#62; Ingest API The SearchStax Site Search solution&#8217;s Ingest API exposes the project&#8217;s /update endpoint. It lets you update Solr&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/searchstudio/searchstax-studio-ingest-api/">Continue reading <span class="screen-reader-text">Ingest API</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/searchstax-studio-ingest-api/">Ingest API</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading">Ingest API</h1>



<hr class="wp-block-separator has-css-opacity"/>



<p><strong>Site Search &gt; App Settings &gt; Data Management &gt; Ingest API</strong></p>



<p>The SearchStax Site Search solution&#8217;s <strong>Ingest API</strong> exposes the project&#8217;s <strong>/update</strong> endpoint. It lets you update Solr documents in your Site Search project. For perspective on the advantages of using the Ingest API, see our <a href="https://www.searchstax.com/blog/data-ingestion-for-site-search/">Data Ingestion for Site Search</a> blog post.</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="495" src="https://demo.searchstax.com/docs/wp-content/uploads/2022/01/image-77-1024x495.png" alt="" class="wp-image-21607" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2022/01/image-77-1024x495.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2022/01/image-77-300x145.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2022/01/image-77-768x371.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2022/01/image-77.png 1244w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>The <code>/update</code> endpoint uses the <strong>&#8220;Read-Write&#8221; Search API credentials</strong> from the <strong>Site Search &gt; App Settings &gt; All APIs &gt;</strong> <a href="https://demo.searchstax.com/docs/searchstudio/searchstax-studio-search-api-tab/">Search &amp; Indexing</a> screen. </p>



&nbsp;&nbsp;



<h2 class="wp-block-heading" id="h-contents">Contents:</h2>



<ul class="wp-block-list">
<li><a href="#basic-search">Indexing JSON Documents</a></li>



<li><a href="#xml-documents">Indexing XML Documents</a></li>



<li><a href="#h-indexing-csv-documents">Indexing CSV Documents</a></li>



<li><a href="#delete-documents">Deleting Documents</a></li>



<li><a href="#api-limits">API Limits</a></li>
</ul>



&nbsp;&nbsp;



<h2 class="wp-block-heading" id="json-documents">Indexing JSON Documents</h2>



<p>For indexing a single JSON document, pass the JSON document to the <code>/update</code> endpoint as shown below:</p>



<p>For apps using <a href="https://demo.searchstax.com/docs/searchstudio/searchstax-studio-search-api-tab/#token-auth">Token Authentication</a>:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; notranslate">
curl -H &quot;Authorization: Token b70dacf3956e6e148393fbfREDACTED&quot; -X POST -H &#039;Content-type:application/json&#039; --data-binary &#039;{&quot;id&quot;:&quot;1&quot;}&#039; &quot;https://searchcloud-2-us-east-1.searchstax.com/12345/custom-1234/update?commit=true&quot;
</pre></div>


<p>For app using <a href="https://demo.searchstax.com/docs/searchstudio/searchstax-studio-search-api-tab/#basic-auth">Basic Authentication</a>:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; notranslate">
curl -X POST -H &#039;Content-Type: application/json&#039; &#039;https://ss123456-cvrfzabx-us-east-1-aws.searchstax.com/solr/ss123456-SearchStudioCorpSite/update/json/docs&#039; --user app40-admin:REDACTEDPWD --data-binary &#039;
{
  &quot;id&quot;: &quot;1&quot;,
  &quot;title&quot;: &quot;Doc 1&quot;
}&#039;
</pre></div>


<p>Adding multiple documents can be done by passing an array of JSON objects to the <code>/update</code> endpoint as shown below</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; notranslate">
curl -H &quot;Authorization: Token b70dacf3956e6e148393fbfREDACTED&quot; -X POST -H &#039;Content-type:application/json&#039; --data-binary &#039;&#x5B;{&quot;id&quot;:&quot;1&quot;,&quot;title_t&quot;:&quot;Test Title&quot;,&quot;description_t&quot;:&quot;Testing&quot;,&quot;group_s&quot;:&quot;Token&quot;}]&#039; &quot;https://searchcloud-2-us-east-1.searchstax.com/12345/custom-1234/update?commit=true&quot;
</pre></div>

<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; notranslate">
curl -X POST -H &#039;Content-Type: application/json&#039; &#039;https://ss123456-cvrfzabx-us-east-1-aws.searchstax.com/solr/ss123456-SearchStudioCorpSite/update&#039; --user app40-admin:REDACTEDPWD --data-binary &#039;
&#x5B;
  {
    &quot;id&quot;: &quot;1&quot;,
    &quot;title&quot;: &quot;Doc 1&quot;
  },
  {
    &quot;id&quot;: &quot;2&quot;,
    &quot;title&quot;: &quot;Doc 2&quot;
  }
]&#039;
</pre></div>


<p><meta charset="utf-8">If the data is in a JSON file and contains an array of JSON objects, you can make a call to the <code>/update</code> endpoint as shown below</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; notranslate">
curl -H &quot;Authorization: Token b70dacf3956e6e148393fbfREDACTED&quot; -X POST -H &#039;Content-type:application/json&#039; --data-binary @example.json &quot;https://searchcloud-2-us-east-1.searchstax.com/12345/custom-1234/update?commit=true&quot;
</pre></div>

<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; notranslate">
curl -X POST -H &#039;Content-Type: application/json&#039; &#039;https://ss123456-cvrfzabx-us-east-1-aws.searchstax.com/solr/ss123456-SearchStudioCorpSite/update&#039; --user app40-admin:REDACTEDPWD --data-binary @example.json -H &#039;Content-type:application/json&#039;
</pre></div>


&nbsp;&nbsp;



<h2 class="wp-block-heading" id="xml-documents"><meta charset="utf-8">Indexing XML Documents</h2>



<p>To index XML documents, you can send one or multiple <code>&lt;add&gt;</code> tags to the <code>\update</code> request as shown below:</p>



<p>For apps using <a href="https://demo.searchstax.com/docs/searchstudio/searchstax-studio-search-api-tab/#token-auth">Token Authentication</a>:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; notranslate">
curl -H &quot;Authorization: Token b70dacf3956e6e148393fbfREDACTED&quot; -X POST -H &#039;Content-type:text/xml&#039; --data-binary 
 &#039;&amp;lt;add&gt;
    &amp;lt;doc&gt;
      &amp;lt;field name=&quot;id&quot;&gt;id1&amp;lt;/field&gt;
      &amp;lt;field name=&quot;title&quot;&gt;Document1&amp;lt;/field&gt;
      &amp;lt;field name=&quot;text&quot;&gt;This is the first document&amp;lt;/field&gt;
    &amp;lt;/doc&gt;
  &amp;lt;/add&gt;&#039; 
&quot;https://searchcloud-2-us-east-1.searchstax.com/12345/custom-1234/update?commit=true&quot;
</pre></div>


<p>For apps using <a href="https://demo.searchstax.com/docs/searchstudio/searchstax-studio-search-api-tab/#basic-auth">Basic Authentication</a>:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; notranslate">
curl -X POST -H &#039;Content-Type: text/xml&#039; &#039;https://ss123456-cvrfzabx-us-east-1-aws.searchstax.com/solr/ss123456-SearchStudioCorpSite/update?commit=true&#039; --user app40-admin:REDACTEDPWD --data-binary &#039;
&amp;lt;add&gt;
  &amp;lt;doc&gt;
    &amp;lt;field name=&quot;id&quot;&gt;id1&amp;lt;/field&gt;
    &amp;lt;field name=&quot;title&quot;&gt;Document1&amp;lt;/field&gt;
    &amp;lt;field name=&quot;text&quot;&gt;This is the first document&amp;lt;/field&gt;
   &amp;lt;/doc&gt;
&amp;lt;/add&gt;&#039;
</pre></div>


<ul class="wp-block-list">
<li>The&nbsp;<code>&lt;add&gt;</code>&nbsp;element introduces one more documents to be added. This can be substituted by <code>&lt;update&gt;</code> to update the document.</li>



<li>The&nbsp;<code>&lt;doc&gt;</code>&nbsp;element introduces the fields making up a document.</li>



<li>The&nbsp;<code>&lt;field&gt;</code>&nbsp;element presents the content for a specific field.</li>
</ul>



&nbsp;&nbsp;



<h2 class="wp-block-heading" id="h-indexing-csv-documents">Indexing CSV Documents</h2>



<p>The /update endpoint can load data files in comma-separated format (CSV).  The format of the data file is very simple, as shown in the <strong>books.csv</strong> example that is distributed with <a href="https://solr.apache.org/downloads.html">Solr stand-alone installation files</a>:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
id,cat,name,price,inStock,author,series_t,sequence_i,genre_s
0553573403,book,A Game of Thrones,7.99,true,George R.R. Martin,&quot;A Song of Ice and Fire&quot;,1,fantasy
0553579908,book,A Clash of Kings,7.99,true,George R.R. Martin,&quot;A Song of Ice and Fire&quot;,2,fantasy
055357342X,book,A Storm of Swords,7.99,true,George R.R. Martin,&quot;A Song of Ice and Fire&quot;,3,fantasy
0553293354,book,Foundation,7.99,true,Isaac Asimov,Foundation Novels,1,scifi
0812521390,book,The Black Company,6.99,false,Glen Cook,The Chronicles of The Black Company,1,fantasy
0812550706,book,Ender&#039;s Game,6.99,true,Orson Scott Card,Ender,1,scifi
0441385532,book,Jhereg,7.95,false,Steven Brust,Vlad Taltos,1,fantasy
0380014300,book,Nine Princes In Amber,6.99,true,Roger Zelazny,the Chronicles of Amber,1,fantasy
0805080481,book,The Book of Three,5.99,true,Lloyd Alexander,The Chronicles of Prydain,1,fantasy
080508049X,book,The Black Cauldron,5.99,true,Lloyd Alexander,The Chronicles of Prydain,2,fantasy
</pre></div>


<ul class="wp-block-list">
<li>Line 1 is the header, containing the field names used in the index. One of these must be a unique document ID.</li>



<li>Subsequent lines each represent one index record. Commas separate values. Do not allow spaces immediately following a comma. </li>



<li>A missing value is denoted by two adjacent commas (<strong>,,</strong>).</li>



<li>Note the <a href="https://solr.apache.org/guide/8_5/dynamic-fields.html">dynamic fields</a> (<strong>series_t, sequence_i, genre_s</strong>) in the header. This mechanism lets you add custom fields to your index without the labor of modifying the Solr schema. </li>
</ul>



<p>For apps using <a href="https://demo.searchstax.com/docs/searchstudio/searchstax-studio-search-api-tab/#token-auth">Token Authentication</a>:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
curl -H &quot;Authorization: Token 8a931ae9bfe3538c2b4d8121fad564c676f7de0f&quot; 
  -H &#039;Content-type:application/csv&#039;
  --data-binary @books.csv
  &#039;https://searchcloud-1-us-west-2.searchstax.com/95338/csvuploadapp-3684/update?commit=true
</pre></div>


<p>For apps using <a href="https://demo.searchstax.com/docs/searchstudio/searchstax-studio-search-api-tab/#basic-auth">Basic Authentication</a>:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
curl -H &#039;Content-type:application/csv&#039;
  --data-binary @books.csv
  --user app40-admin:REDACTEDPWD
  &#039;https://searchcloud-1-us-west-2.searchstax.com/95338/csvuploadapp-3684/update?commit=true
</pre></div>


<h2 class="wp-block-heading" id="delete-documents">Deleting Documents</h2>



<p>When experimenting with document uploads, it is often helpful to be able to clear the index or to remove specific documents. See the following Help Center topics for examples:</p>



<ul class="wp-block-list">
<li><a href="https://demo.searchstax.com/docs/hc/clear-a-site-search-index/">Clear a Site Search Index</a></li>



<li><a href="https://demo.searchstax.com/docs/hc/delete-individual-documents-2/">Delete Individual Documents</a></li>
</ul>



&nbsp;&nbsp;



<h2 class="wp-block-heading" id="api-limits">API Limits</h2>



<ul class="wp-block-list">
<li>All update requests should have a maximum size of 2048KB.</li>
</ul>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<h2 class="wp-block-heading" id="questions">Questions?</h2>



<p>Do not hesitate to contact the <a href="mailto:support@demo.searchstax.com?subject=Site%20Search%3A%20Ingest%20API" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
</div></div>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/searchstax-studio-ingest-api/">Ingest API</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
