<?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>Sitecore Solr Topics Archives - SearchStax Docs</title>
	<atom:link href="https://demo.searchstax.com/docs/hccategory/sitecore-topics/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Documentation</description>
	<lastBuildDate>Mon, 10 Feb 2025 16:10:01 +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>Sitecore Solr Topics Archives - SearchStax Docs</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Can SearchStax Managed Search provide Solr indexing support for Sitecore?</title>
		<link>https://demo.searchstax.com/docs/hc/searchstax-solr-sitecore/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Wed, 10 Mar 2021 09:43:50 +0000</pubDate>
				<guid isPermaLink="false">https://demo.searchstax.com/docs/?post_type=hc&#038;p=7829</guid>

					<description><![CDATA[<p>Sitecore uses Solr as a search engine to index and retrieve content from the Sitecore database. Solr is designed to provide fast search results, even with large amounts of data.&#160;It&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/hc/searchstax-solr-sitecore/">Continue reading <span class="screen-reader-text">Can SearchStax Managed Search provide Solr indexing support for Sitecore?</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/hc/searchstax-solr-sitecore/">Can SearchStax Managed Search provide Solr indexing support for Sitecore?</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Sitecore uses Solr as a search engine to index and retrieve content from the Sitecore database. Solr is designed to provide fast search results, even with large amounts of data.&nbsp;It also provides advanced search features, such as faceted search, fuzzy search, boost, and stemming.&nbsp;</p>



<p>The <a href="https://www.searchstax.com/managed-solr/" target="_blank" rel="noreferrer noopener">SearchStax Managed Search</a> service lets developers set up and deploy Solr infrastructure for Sitecore in minutes and removes the pain of managing and supporting Solr deployments. Hundreds of Sitecore customers are currently using Managed Search to efficiently and effectively manage their Solr infrastructure.</p>



<p>See the <a href="/docs/searchstax-cloud-sitecore-solr-compatibility/">Sitecore/Solr Compatibility</a> page for more information on recommendations for the combinations of Sitecore and Solr.</p>



<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=HC%3A%20Can%20SearchStax%20provide%20Solr%20indexing%20to%20Sitecore%3F" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
</div></div>
<p>The post <a href="https://demo.searchstax.com/docs/hc/searchstax-solr-sitecore/">Can SearchStax Managed Search provide Solr indexing support for Sitecore?</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Solr 8.x End-of-Life and Sitecore</title>
		<link>https://demo.searchstax.com/docs/hc/solr-8x-end-of-life-and-sitecore/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Tue, 24 Dec 2024 21:44:20 +0000</pubDate>
				<guid isPermaLink="false">https://demo.searchstax.com/docs/?post_type=hc&#038;p=20305</guid>

					<description><![CDATA[<p>Some of our SearchStax Managed Search service clients have expressed concern about Solr/Sitecore compatibility due to two factors: What action should operators of Sitecore/Solr/SearchStax systems take in the face of&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/hc/solr-8x-end-of-life-and-sitecore/">Continue reading <span class="screen-reader-text">Solr 8.x End-of-Life and Sitecore</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/hc/solr-8x-end-of-life-and-sitecore/">Solr 8.x End-of-Life and Sitecore</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Some of our SearchStax Managed Search service clients have expressed concern about Solr/Sitecore compatibility due to two factors:</p>



<ul class="wp-block-list">
<li>Apache recently announced that <a href="https://solr.apache.org/news.html#solr-8-reaches-end-of-life">Solr 8.x has reached its end-of-life</a>.</li>



<li>Solr 9 is not known to be compatible with Sitecore. </li>
</ul>



<p>What action should operators of Sitecore/Solr/SearchStax systems take in the face of this uncertainly?</p>



<p>At present (December 2024), Sitecore suggests remaining with compatible versions of Solr 8.x.  For Sitecore 10.3 and 10.4, that means Solr 8.11.2.  Solr versions 8.11.3 and 8.11.4 are thought to be compatible but are not certified. </p>



<p>See <a href="https://support.sitecore.com/kb?id=kb_article_view&amp;sysparm_article=KB0227897">Sitecore&#8217;s compatibility page</a> for the latest updates on this situation. </p>



<h2 class="wp-block-heading" id="questions">Questions?</h2>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<p>Do not hesitate to contact the <a href="mailto:support@demo.searchstax.com?subject=HC%3A%20Solr%208.x%20End-of-Life%20and%20Sitecore" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
</div></div>
<p>The post <a href="https://demo.searchstax.com/docs/hc/solr-8x-end-of-life-and-sitecore/">Solr 8.x End-of-Life and Sitecore</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Optimizing the xConnect Search Service</title>
		<link>https://demo.searchstax.com/docs/hc/optimizing-the-xconnect-search-service/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Wed, 10 Mar 2021 09:34:23 +0000</pubDate>
				<guid isPermaLink="false">https://demo.searchstax.com/docs/?post_type=hc&#038;p=7826</guid>

					<description><![CDATA[<p>SearchStax Managed Search service clients often ask us about optimizing the Sitecore xDB index. Sitecore offers a page of advice about optimizing search and indexing of your xDB index. https://support.sitecore.com/kb?id=kb_article_view&#38;sysparm_article=KB0671173&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/hc/optimizing-the-xconnect-search-service/">Continue reading <span class="screen-reader-text">Optimizing the xConnect Search Service</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/hc/optimizing-the-xconnect-search-service/">Optimizing the xConnect Search Service</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>SearchStax Managed Search service clients often ask us about optimizing the Sitecore xDB index. </p>



<p>Sitecore offers a page of advice about optimizing search and indexing of your xDB index.</p>



<p><a href="https://support.sitecore.com/kb?id=kb_article_view&amp;sysparm_article=KB0671173" target="_blank" rel="noreferrer noopener">https://support.sitecore.com/kb?id=kb_article_view&amp;sysparm_article=KB0671173</a></p>



<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=HC%3A%20Optimizing%20the%20xConnect%20Search%20Service" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
</div></div>
<p>The post <a href="https://demo.searchstax.com/docs/hc/optimizing-the-xconnect-search-service/">Optimizing the xConnect Search Service</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Lowering &#038;rows=1000000</title>
		<link>https://demo.searchstax.com/docs/hc/lower-million-rows-setting/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Tue, 21 Jun 2022 17:55:05 +0000</pubDate>
				<guid isPermaLink="false">https://demo.searchstax.com/docs/?post_type=hc&#038;p=11729</guid>

					<description><![CDATA[<p>SearchStax Managed Search service clients often ask us how to optimize Solr queries. A Solr /select query has an optional &#38;rows parameter that tells the Solr responseHandler how many documents&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/hc/lower-million-rows-setting/">Continue reading <span class="screen-reader-text">Lowering &#038;rows=1000000</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/hc/lower-million-rows-setting/">Lowering &#038;rows=1000000</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>SearchStax Managed Search service clients often ask us how to optimize Solr queries. </p>



<p>A Solr <strong>/select</strong> query has an optional <strong>&amp;rows</strong> parameter that tells the Solr responseHandler how many documents to include in the response. The default value is 10 documents. For a given query, response time goes up with the number of rows requested.</p>



<p>For instance, we ran a single-keyword query against a collection of 13,500,000 retail products. The <strong>QTime</strong> varied with <strong>&amp;rows</strong>, even though the <strong>numFound</strong> (number of matches) did not. (QTime is milliseconds that Solr spent processing the query.)</p>


<figure class="wp-block-table table table-bordered table-striped">
<table>
<tbody>
<tr>
<td><strong>numFound</strong></td>
<td><strong>&amp;rows</strong></td>
<td><strong>QTime</strong></td>
</tr>
<tr>
<td>72441</td>
<td>10 (Solr default)</td>
<td>156 ms</td>
</tr>
<tr>
<td>72441</td>
<td>1000</td>
<td>233 ms</td>
</tr>
<tr>
<td>72441</td>
<td>1000000</td>
<td>521 ms</td>
</tr>
<tr>
<td>72441</td>
<td>100000000</td>
<td>3643 ms</td>
</tr>
</tbody>
</table>
</figure>


<p>Many factors influence these timings (such as caching), but you can see that minimizing the &amp;rows setting is likely to be a Best Practice. </p>



<h2 class="wp-block-heading" id="h-sitecore-amp-rows-settings">Sitecore &amp;rows Settings</h2>



<p>By default, Sitecore sends /select and /suggest queries to Solr with the <strong>&amp;rows</strong> parameter set to 1000000, and in some cases, to 100000000.  These settings places enormous stress on Solr, sometimes maximizing CPU and JVM usage, because Solr allocates enough memory to hold a million documents before processing each query.  Since Sitecore can issue hundreds of these queries in a few seconds, the memory load can exceed Solr&#8217;s ability to cope. </p>



<p>SearchStax recommends lowering the default setting: </p>



<ol class="wp-block-list">
<li>In your Sitecore installation, navigate to <code>App_Config\Sitecore\ContentSearch\Sitecore.ContentSearch.config</code>.</li>



<li>Locate <code>&lt;setting name="ContentSearch.SearchMaxResults" value="1000000" /&gt;</code>.</li>



<li>Change the value to &#8220;1000&#8221; unless you really do need more than a thousand documents. </li>



<li>Save the file and restart Sitecore. </li>
</ol>



<p>You should see the change reflected in the <strong>/select</strong> requests recorded in your <strong>Load Balancer</strong> log files.  </p>



<p>For further information, consult this <strong>Sitecore Knowledge Base</strong> article: <a href="https://support.sitecore.com/kb?id=kb_article_view&amp;sysparm_article=KB0671173">https://support.sitecore.com/kb?id=kb_article_view&amp;sysparm_article=KB0671173</a>.</p>



<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=HC%3A%20Lowering%20%26rows%3D1000000" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
</div></div>
<p>The post <a href="https://demo.searchstax.com/docs/hc/lower-million-rows-setting/">Lowering &#038;rows=1000000</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Can we use SwitchOnRebuild with SearchStax?</title>
		<link>https://demo.searchstax.com/docs/hc/sitecore-switchonrebuild-searchstax/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Wed, 10 Mar 2021 09:31:08 +0000</pubDate>
				<guid isPermaLink="false">https://demo.searchstax.com/docs/?post_type=hc&#038;p=7825</guid>

					<description><![CDATA[<p>SearchStax Managed Search service users sometimes ask about using Sitecore&#8217;s &#8220;Switch on Rebuild&#8221; feature. This uses a secondary core which can be read while the primary core is being rebuilt.&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/hc/sitecore-switchonrebuild-searchstax/">Continue reading <span class="screen-reader-text">Can we use SwitchOnRebuild with SearchStax?</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/hc/sitecore-switchonrebuild-searchstax/">Can we use SwitchOnRebuild with SearchStax?</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>SearchStax Managed Search service users sometimes ask about using Sitecore&#8217;s &#8220;Switch on Rebuild&#8221; feature. This uses a secondary core which can be read while the primary core is being rebuilt.</p>



<div class="alert alert-info">
<h3>SWAP vs. CREATEALIAS</h3>
<p>Solr&#8217;s core swapping depends on its underlying <a alt="SearchStax Solr SWAP" href="https://solr.apache.org/guide/6_6/coreadmin-api.html">SWAP</a> feature, but SolrCloud uses the <a alt="SearchStax solr CREATEALIAS" href="https://solr.apache.org/guide/7_4/collections-api.html">CREATEALIAS</a> feature to do the same thing. Using SWAP with SolrCloud can damage your index. </p>
<p>SearchStax Managed Search service deployments are all SolrCloud deployments. Use CREATEALIAS with Managed Search.</p> 
</div>



<p>Sitecore&#8217;s <strong>SwitchOnRebuild</strong> feature comes in two flavors that mirror the distinction between SWAP and CREATEALIAS. These passages are from <a href="https://doc.sitecore.com/xp/en/developers/91/platform-administration-and-architecture/switch-solr-indexes.html#UUID-3a302eb1-ef6a-fd96-b81a-6a30bd393c48_N1530083724083_body" target="_blank" rel="noreferrer noopener">Switch SolrCloud Indexes</a> in the Sitecore documentation. Note the distinction between <strong>SwitchOnRebuildSolrSearchIndex</strong> (for Solr) and <strong>SwitchOnRebuild<em>SolrCloud</em>SearchIndex</strong> (for SolrCloud):</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>You use the <strong>SwitchOnRebuildSolrSearchIndex</strong> class to rebuild and switch Solr indexes. This implementation uses the Solr SWAP command to swap the active and the rebuild indexes.</p>



<p>The mechanism for maintaining and switching two indexes is different when use SolrCloud. The implementation in the <strong>SwitchOnRebuildSolrCloudSearchIndex</strong> class uses collection aliases: it uses the active alias for search and update operations and the rebuild alias for rebuild operations. When a rebuild operation finishes, the CREATEALIAS command swaps the collections the aliases reference.</p>
</blockquote>



<p>So the answer is, &#8220;Yes, you can do it.&#8221; Just be sure to use the SolrCloud version with Managed Solr.</p>



<div class="alert alert-success">
<h3>See the Full Procedure!</h3>
<p>Please see our <a href="https://www.searchstax.com/blog/sitecore-switchonrebuild-and-searchstax-solrcloud/">SwitchOnRebuild Blog Article</a> 
for step-by-step instructions on enabling this feature with Managed Search.</p>
</div>



<div class="alert alert-warning">
<h3>XDB Alias Issues</h3>
<p>It is very common to misname the switch-on-rebuild aliases. If you see errors like &#8220;&#8216;xdb_rebuild&#8217; is not an existing collection or alias,&#8221; revisit the alias names. </p>
</div>



<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=HC%3A%20Can%20we%20use%20Sitecore%27s%20SwitchOnRebuild%20with%20SearchStax%3F" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
</div></div>
<p>The post <a href="https://demo.searchstax.com/docs/hc/sitecore-switchonrebuild-searchstax/">Can we use SwitchOnRebuild with SearchStax?</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Unpublish/Delete Fails to Remove Item from Sitecore Index</title>
		<link>https://demo.searchstax.com/docs/hc/unpublish-delete-fails/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Thu, 21 Oct 2021 18:31:02 +0000</pubDate>
				<guid isPermaLink="false">https://demo.searchstax.com/docs/?post_type=hc&#038;p=9915</guid>

					<description><![CDATA[<p>When SearchStax Managed Search service clients use Sitecore 10.0 or an older version, they sometimes face a problem when trying to unpublish an item from the web database or even&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/hc/unpublish-delete-fails/">Continue reading <span class="screen-reader-text">Unpublish/Delete Fails to Remove Item from Sitecore Index</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/hc/unpublish-delete-fails/">Unpublish/Delete Fails to Remove Item from Sitecore Index</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>When SearchStax Managed Search service clients use Sitecore 10.0 or an older version, they sometimes face a problem when trying to unpublish an item from the web database or even delete an item before publishing its parent.</p>



<p>This occurs because of an inconsistency in Sitecore related to the “_indexname” Solr field. This field is stored on Solr using the “string” field type while it should be stored as “keyword”. Please note that this is fixed for Sitecore 10.1 or later.</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="623" height="181" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/10/image-23.png" alt="SearchStax Sitecore delete" class="wp-image-9916" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2021/10/image-23.png 623w, https://demo.searchstax.com/docs/wp-content/uploads/2021/10/image-23-300x87.png 300w" sizes="(max-width: 623px) 100vw, 623px" /></figure>



<p>This causes an error when Sitecore identifies a delete or unpublish operation and tries to inform Solr that this item should be removed from the index. <strong>As you can note in the below images, Sitecore always stores the index name as lowercased, but for some reason it uses the original value with capital letters when performing the delete call on Solr</strong>.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="624" height="267" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/10/image-24.png" alt="SearchStax Sitecore delete" class="wp-image-9917" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2021/10/image-24.png 624w, https://demo.searchstax.com/docs/wp-content/uploads/2021/10/image-24-300x128.png 300w" sizes="(max-width: 624px) 100vw, 624px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="556" height="202" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/10/image-25.png" alt="SearchStax Sitecore delete" class="wp-image-9918" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2021/10/image-25.png 556w, https://demo.searchstax.com/docs/wp-content/uploads/2021/10/image-25-300x109.png 300w" sizes="(max-width: 556px) 100vw, 556px" /></figure>



<p>SearchStax has created a workaround which is already part of the 1.4 release of the <strong>SearchStax Managed Search Connector for Sitecore</strong>, so if you use this or a newer version you should not have this problem. If you are using an older version, the best solution is to upgrade the package to a newer version.</p>



<p>If that’s not possible, please contact SearchStax support team. They will create a new SearchStax index core which hasn’t any capital letters on its name. This guarantees that any delete operation from a Sitecore index works even if using Sitecore 10.0 or lower version.</p>



<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=HC%3A%20Unpublish%2FDelete%20Fails%20to%20Remove%20Item%20from%20Sitecore%20Index" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
</div></div>
<p>The post <a href="https://demo.searchstax.com/docs/hc/unpublish-delete-fails/">Unpublish/Delete Fails to Remove Item from Sitecore Index</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Sitecore Solr Cloud Connection Errors</title>
		<link>https://demo.searchstax.com/docs/hc/sitecore-connect-errors/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Wed, 10 Mar 2021 08:20:42 +0000</pubDate>
				<guid isPermaLink="false">https://demo.searchstax.com/docs/?post_type=hc&#038;p=7804</guid>

					<description><![CDATA[<p>SearchStax Managed Search service customers sometimes encounter issues when connecting Sitecore to Solr Cloud for the first time. The issues are so common that a developer can encounter them in&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/hc/sitecore-connect-errors/">Continue reading <span class="screen-reader-text">Sitecore Solr Cloud Connection Errors</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/hc/sitecore-connect-errors/">Sitecore Solr Cloud Connection Errors</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p><a href="https://www.searchstax.com/managed-solr/">SearchStax Managed Search</a> service customers sometimes encounter issues when connecting Sitecore to Solr Cloud for the first time. The issues are so common that a developer can encounter them in sequence (fix one, meet the next one). On this page we present solutions to a range of these Sitecore start-up issues.</p>



<p>Note that SearchStax supplies <a href="/docs/searchstax-cloud-connector-for-sitecore-9-3-solr/">explicit instructions</a> for bridging this gap, including the <strong>SearchStax Managed Search Connector for Sitecore</strong> that performs the configuration for you.</p>



<p><strong>Sitecore can&#8217;t connect to Solr:</strong></p>



<ul>
   <li><strong>IP Filtering</strong>. First, be sure that the computer running Sitecore has been <a href="/docs/security/#IPfilter">whitelisted</a> in the IP filters of the Solr deployment. Note that DHCP can change a server&#8217;s IP address without warning. If the connection used to work but then stopped working, suspect this source.<br><br></li>
   <li><strong>Incorrect Sitecore connection string</strong>. To connect Sitecore to a Solr cloud cluster, check the <strong>SitecoreWebSite/App_Config/ConnectionStrings.config</strong> file for an entry similar to:<br><br><code>&lt;add name="solr.search" connectionString="&lt;Solr HTTP Endpoint&gt;/solr;solrCloud=true" /&gt;</code><br><br>Solr is unforgiving about this string. An extra / at the end will break it. (In that case, you may see an error mentioning <code>Test connection has failed with an exception. Type: 'SolrConnectionException'</code>.) <br><br>The <strong>connectionString</strong> ends with <code>/solr;solrCloud=true</code>. There is no <code>/</code> between <code>/solr</code> and the semicolon. Sitecore inserts that character automatically. <br><br>If you connect to Solr from a <em>browser</em>, which is a good debugging aid, you must include the <code>/</code> prior to the semicolon, as in <code>/solr/;solrCloud=true</code>. <br><br>The <code>solrCloud=true</code> parameter is highly recommended for single-node Solr deployments, and is required for Solr clusters.<br><br></li>
   <li><strong>Incorrect xConnect connection string</strong>. When using xConnect to index Sitecore xDB databases, for every instance of the xConnect Collection Search role, open the <strong>&lt;role-root&gt;/App_Config/ConnectionStrings.config</strong> file and set:<br><br><code>&lt;add name="solrCore" connectionString="&lt;Solr HTTP Endpoint&gt;/solr/xdb;solrcloud=true" /&gt;</code><br><br>
      The <strong>connectionString</strong> ends with <code>/solr/xdb;solrCloud=true</code>. There is no <code>/</code> between <code>/solr/xdb</code> and the semicolon.<br><br>
   </li>
   <li>
      <strong>Sitecore mentions 10.x.x.x:8983</strong>. You tried to build an index from the <strong>Sitecore Index Manager</strong>. The system seemed to hang or took a very long time to complete indexing. There was an error saying &#8220;Unable to connect to Solr&#8221; and mentioning an internal IP address (10.x.x.x) and port 8983. Alternately, you may have seen a Sitecore message saying &#8220;ERROR GetSummary has failed due to an exception.&#8221;

<br><br>This is a known bug in Sitecore. To get around it:
      <ul>
         <li>Generate the index from the <strong>Sitecore Content Editor</strong> instead of the Index Manager.</li>
         <li>Contact Sitecore for a patch file. This bug is being tracked by Sitecore under the reference number &#8211; 355209. </li>
      </ul>
      <p>This situation sometimes arises due to a misconfiguration of the Sitecore 10/Solr connection. See <a href="https://doc.sitecore.com/xp/en/developers/100/platform-administration-and-architecture/walkthrough--setting-up-solrcloud.html">Walkthrough: Setting up SolrCloud</a>, section <strong>Configure Sitecore to use SolrCloud</strong>, step 3:<br><br></p>
      <p style="margin-left:10%; margin-right:10%;">If you only access nodes of SolrCloud within a private network, set the <code>ContentSearch.IndexingManager.DisplayShortStatistic</code> setting to <code>true</code>. This eliminates direct requests to the nodes used to display additional index statistics&nbsp;in the Indexing Manager Wizard.<br><br></p>
   </li>
   <li><strong>Solr Basic Auth password contains special characters:</strong> The Sitecore connection string to Solr often contains the Solr Basic Auth username and password:<br><br><code>https://username:pass%word@&lt;Solr Endpoint&gt;;solrCloud=true</code><br><br>There are special characters that cannot be passed in an HTTP URL. If the password contains % signs, for instance, you will get an error saying &#8220;Not a valid Solr URL.&#8221; Substitute %25 for % in the URL string, so the above password becomes &#8220;pass%25word&#8221;.<br><br>Or, just use a password without special characters. </li>
</ul>



<p><strong>Solr.log file contains schema or field errors:</strong></p>



<ul class="wp-block-list">
<li>See our Help Center page on <a href="/docs/hc/indexing-error/">What causes Indexing Errors?</a> for more information.</li>
</ul>



<ul class="wp-block-list"></ul>



<h2 class="wp-block-heading" id="questions">Questions?</h2>



<p>Do not hesitate to contact the <a href="mailto:support@demo.searchstax.com?subject=HC%3A%20Sitecore%20Connection%20Errors" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
<p>The post <a href="https://demo.searchstax.com/docs/hc/sitecore-connect-errors/">Sitecore Solr Cloud Connection Errors</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>POST vs. GET Requests</title>
		<link>https://demo.searchstax.com/docs/hc/post-vs-get-requests/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Wed, 20 Mar 2024 21:02:27 +0000</pubDate>
				<guid isPermaLink="false">https://demo.searchstax.com/docs/?post_type=hc&#038;p=17450</guid>

					<description><![CDATA[<p>Overview SearchStax Managed Search service Solr queries may be submitted using either the GET or POST HTTP method. The query string of a GET request is included as part of&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/hc/post-vs-get-requests/">Continue reading <span class="screen-reader-text">POST vs. GET Requests</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/hc/post-vs-get-requests/">POST vs. GET Requests</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading" id="h-overview">Overview</h2>



<p>SearchStax Managed Search service Solr queries may be submitted using either the GET or POST HTTP method. The query string of a GET request is included as part of the URL in the request header. In a POST request, the query string is part of the data payload and does not inflate the header size.</p>



<p>Some applications, notably Sitecore, generate very large query strings that can exceed the maximum HTTP header size of a GET request, resulting in <a href="https://demo.searchstax.com/docs/hc/solr-jetty-header-size/">HTTP 413 errors</a>. </p>



<p>If your queries run out of header space, you&#8217;ll be interested in these possible strategies:</p>



<ul class="wp-block-list">
<li><strong>Adjust HTTP header size</strong>. The header size can be increased as needed on Azure single-node deployments; but only up to a limit of 32 KB on Azure clusters. This means that large header sizes on test (single-node) deployments often cannot be transferred to production clusters on Azure.  </li>



<li><strong>Use POST queries instead of GET queries</strong>. This moves the query string out of the HTTP header into the body of the request. </li>



<li><strong>Adjust the query complexity</strong> to reduce the size of the query string. See <a href="https://sitecore.stackexchange.com/questions/34316/solr-query-error-uri-too-long">Solr query error &#8211; URI Too Long</a> for suggestions on how to pare down the Sitecore queries to meet this limitation. Ultimately, you&#8217;ll need to discuss this with <a href="https://support.sitecore.com/kb?id=kb_article_view&amp;sysparm_article=KB0654910#HowToCreateASupportCase">Sitecore support</a>. </li>
</ul>



<h2 class="wp-block-heading" id="h-using-post-queries">Using POST Queries</h2>



<p>If you encounter this 413 heading error in a non-Sitecore context, you can issue POST query requests using the following Linux <strong>curl</strong> or Windows <strong>PowerShell</strong> request formats.</p>



<h4 class="wp-block-heading" id="h-linux"><strong>Linux:</strong></h4>



<pre class="wp-block-preformatted">curl -d "q=*:*&amp;rows=1" https://ss123456-dkwl9slx-ca-central-1-aws.searchstax.com/solr/filmcollection/select
</pre>



<p>Note that the <strong>-d</strong> (data) switch automatically casts the request as a POST message.</p>



<h4 class="wp-block-heading" id="h-powershell"><strong>PowerShell</strong>:</h4>



<pre class="wp-block-preformatted">$params= @{
     q='*:*'
     rows=10
     wt='json'
     indent='true'
     fl='id,movie_title,title_year'
          }

$queryresults = Invoke-RestMethod -Method Post -body $params `
                -ContentType 'application/x-www-form-urlencoded' `
                -uri "https://ss123456-dkwl9slx-ca-central-1-aws.searchstax.com/solr/filmcollection/select"

</pre>



<p></p>



<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=HC%3A%20Why%20does%20Sitecore%20fail%20to%20populate%20schemas%3F" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
</div></div>
<p>The post <a href="https://demo.searchstax.com/docs/hc/post-vs-get-requests/">POST vs. GET Requests</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Why does Sitecore fail to populate schemas?</title>
		<link>https://demo.searchstax.com/docs/hc/schema-race-condition/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Wed, 10 Mar 2021 08:19:54 +0000</pubDate>
				<guid isPermaLink="false">https://demo.searchstax.com/docs/?post_type=hc&#038;p=7802</guid>

					<description><![CDATA[<p>While connecting Sitecore to the SearchStax Managed Search service, some clients encounter a problem trying to populate the schema used by the Sitecore collections. It often looks like this: This&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/hc/schema-race-condition/">Continue reading <span class="screen-reader-text">Why does Sitecore fail to populate schemas?</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/hc/schema-race-condition/">Why does Sitecore fail to populate schemas?</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>While connecting Sitecore to the SearchStax Managed Search service, some clients encounter a problem trying to populate the schema used by the Sitecore collections. It often looks like this:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="420" height="362" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/03/schema-race-condition.png" alt="SearchStax Sitecore Schema race condition" class="wp-image-7803" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2021/03/schema-race-condition.png 420w, https://demo.searchstax.com/docs/wp-content/uploads/2021/03/schema-race-condition-300x259.png 300w" sizes="auto, (max-width: 420px) 100vw, 420px" /></figure>



<p>This occurs when Sitecore has been configured to use only one schema for all collections, and the user tries to populate it from all of the collections at the same time. This creates a race condition where many of the updates time out and are not included in the schema.</p>



<p>Using the <strong>Managed Search Connector for Sitecore</strong> obviates this situation by creating a separate schema for each Sitecore collection. The critical setting is <strong>isUniqueConfigs : &#8220;true&#8221;</strong> in the <strong>configs.yml</strong> file. If you change that value to &#8220;false&#8221;, you are inviting the race-condition bug.</p>



<p>The easy work-around is to repopulate the schema by adding one collection at a time from the Sitecore interface.</p>



<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=HC%3A%20Why%20does%20Sitecore%20fail%20to%20populate%20schemas%3F" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
</div></div>
<p>The post <a href="https://demo.searchstax.com/docs/hc/schema-race-condition/">Why does Sitecore fail to populate schemas?</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
