<?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>Drupal Archives - SearchStax Docs</title>
	<atom:link href="https://demo.searchstax.com/docs/category/managed-solr/mloud-manager/integrate-solr-with/drupal/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Documentation</description>
	<lastBuildDate>Tue, 19 Nov 2024 17:21:18 +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>Drupal Archives - SearchStax Docs</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Managed Search for Drupal 7</title>
		<link>https://demo.searchstax.com/docs/searchstax-cloud-drupal-7/</link>
					<comments>https://demo.searchstax.com/docs/searchstax-cloud-drupal-7/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 15 Feb 2021 11:29:25 +0000</pubDate>
				<category><![CDATA[Drupal]]></category>
		<guid isPermaLink="false">http://mt01.ph5s.com/?p=6828</guid>

					<description><![CDATA[<p>Install Apache Solr on a Drupal 7 Website using Managed Search Overview The SearchStax Managed Search service can be used to enable Apache Solr on a Drupal 7 website using&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/searchstax-cloud-drupal-7/">Continue reading <span class="screen-reader-text">Managed Search for Drupal 7</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstax-cloud-drupal-7/">Managed Search for Drupal 7</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading" id="how-to-install-apache-solr-on-a-drupal-7-website-using-searchstax">Install Apache Solr on a Drupal 7 Website using  Managed Search</h1>



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



<h2 class="wp-block-heading" id="overview">Overview</h2>



<p>The SearchStax Managed Search service can be used to enable <a href="https://www.searchstax.com/solutions/managed-solr-service-for-drupal/">Apache Solr on a Drupal 7</a> website using Drupal&#8217;s <strong>Search API</strong> and its <strong>Search API Solr</strong> modules.</p>



<p>This article was based on a blog post by Thomas Hada of Anant.</p>



<div class="alert alert-warning">
<h4>Drupal 7 compatibility with Solr&#8230;</h4>
<p>This example uses Drupal 7, which is appropriate to Solr versions up to 5.4.1. Unfortunately, Solr versions prior to 6.6.x have reached end-of-life.</p>
<p>Fortunately, there is a little-known workaround that lets you connect Drupal 7 to Solr 7.x.</p>
<p>There is also a <a href="/docs/drupal-8-apache-solr/">Drupal 8</a> page.</p>
</div>



<h2 class="wp-block-heading" id="basic-steps">Basic Steps:</h2>



<ol class="wp-block-list">
<li><a href="#stax" data-type="internal" data-id="#stax">Create a new deployment in SearchStax</a>.</li>



<li><a href="#zoo" data-type="internal" data-id="#zoo">Install the Zookeeper script</a>.</li>



<li><a href="#config" data-type="internal" data-id="#config">Upload a custom configuration to your Solr Server</a>.</li>



<li><a href="#drup" data-type="internal" data-id="#drup">Install Drupal</a>.</li>



<li><a href="#config" data-type="internal" data-id="#config">Install the <strong>Search API</strong> and <strong>Search API Solr</strong> modules</a>.</li>



<li><a href="#confAPI" data-type="internal" data-id="#confAPI">Configure the <strong>Search API Solr</strong> module</a>.</li>



<li><a href="#sample-content" data-type="internal" data-id="#sample-content">Optional &#8211; Add sample content</a>.</li>



<li><a href="#index" data-type="internal" data-id="#index">Optional &#8211; Manually index Your site</a>.</li>



<li><a href="#secure" data-type="internal" data-id="#secure">Optional &#8211; Secure your site</a></li>
</ol>



<h2 class="wp-block-heading" id="stax">Step 1: Create a New Deployment in Managed Search</h2>



<p>Assuming you have already created a SearchStax account and do not already have a deployment set up, click on the <strong>Deployments</strong> tab and then click on the <strong>Create New Deployment</strong> button at the top. Enter a deployment name, and select the most appropriate region, plan, and Solr version for your needs. In this example we will be using Solr 5.5.5.</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="951" height="845" src="https://demo.searchstax.com/docs/wp-content/uploads/2022/10/image-38.png" alt="" class="wp-image-13459" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2022/10/image-38.png 951w, https://demo.searchstax.com/docs/wp-content/uploads/2022/10/image-38-300x267.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2022/10/image-38-768x682.png 768w" sizes="(max-width: 951px) 100vw, 951px" /></figure>



<p>Once you create your deployment, you will see it in the Deployments dashboard.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="134" src="https://demo.searchstax.com/docs/wp-content/uploads/2022/10/image-39-1024x134.png" alt="" class="wp-image-13461" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2022/10/image-39-1024x134.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2022/10/image-39-300x39.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2022/10/image-39-768x100.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2022/10/image-39.png 1104w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Clicking on the name of the deployment will give you pertinent information about your deployment&#8217;s servers. The <strong>Solr HTTP Endpoint</strong> will take you to your Solr server dashboard.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="533" src="https://demo.searchstax.com/docs/wp-content/uploads/2024/06/image-13-1024x533.png" alt="" class="wp-image-18909" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2024/06/image-13-1024x533.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2024/06/image-13-300x156.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2024/06/image-13-768x400.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2024/06/image-13.png 1200w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading" id="zoo">Step 2: Install the Zookeeper Script</h2>



<p><a href="https://zookeeper.apache.org/" target="_blank" rel="noreferrer noopener">Apache ZooKeeper</a> is a centralized service for maintaining configuration information. In a SearchStax deployment, Zookeeper acts as a centralized repository for your Solr configuration files.</p>



<p>We have created a script to help you interact with Zookeeper. This script makes it easier to connect to Zookeeper and upload your Solr configurations. We provide both Linux and Windows versions of the script.</p>



<p>We have made the script available in several different ways. Choose the one that is easiest for you. All methods download the same <strong>master.zip</strong> or <strong>searchstax-client-master.zip</strong> file. This file contains both the Linux and Windows scripts. Unzip the file in a directory of your choice.</p>



<ul class="wp-block-list">
<li>From the Linux command line, you can use <strong>wget https://github.com/searchstax/searchstax-client/archive/master.zip</strong>.</li>



<li>If you have a GitHub account, you can follow this link to a repository that contains the script and its libraries. Look for the green <strong>Clone or Download</strong> button to create and download a ZIP file. <a href="https://github.com/searchstax/searchstax-client" target="_blank" rel="noreferrer noopener">https://github.com/searchstax/searchstax-client</a></li>



<li>If you are using Windows, or are not familiar with GitHub, you can download the ZIP file directly here: <a href="https://github.com/searchstax/searchstax-client/archive/master.zip" target="_blank" rel="noreferrer noopener">searchstax-client-master.zip</a>.</li>
</ul>



<p>Unzip the file. The top-level directory is <strong>\searchstax-client-master</strong>. Navigate to the <strong>scripts</strong> subdirectory (<strong>\searchstax-client-master\solr-6\scripts</strong>). Locate <strong>zkcli.sh</strong> and <strong>zkcli.bat</strong> in that directory. These are the Linux and Windows versions of the script, respectively.</p>



<h2 class="wp-block-heading" id="config">Step 3: Upload a Custom Configuration to Your Solr Server</h2>



<p>Download the <strong>Search API Solr</strong> module files: <a href="https://www.drupal.org/project/search_api_solr" target="_blank" rel="noreferrer noopener">https://www.drupal.org/project/search_api_solr/</a></p>



<p>Included in the <strong>Search API Solr</strong> download are several configurations in the solr-conf folder, with subfolders 4.x, 5.x, and 6.x for the respective Solr versions.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/image12.png" alt="SearchStax Solr Drupal 7 Configurations                             "/></figure>



<p>SearchStax uses Apache ZooKeeper for maintaining configuration information. Upload the appropriate configuration files via Zookeeper and create a new collection. If you have your Zookeeper script already, the two commands you will need are as follows:</p>



<h3 class="wp-block-heading" id="upload-configuration"><strong>Upload Configuration:</strong></h3>



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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
&gt; ./zkcli.sh -zkhost &lt;zookeeper URL&gt; -cmd upconfig -confdir &lt;Solr configuration&gt; -confname &lt;configuration name&gt;
</pre></div>


<h3 class="wp-block-heading" id="windows"><strong>Windows:</strong></h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
$ zkcli.bat -zkhost &lt;zookeeper URL&gt; -cmd upconfig -confdir &lt;Solr configuration&gt; -confname &lt;configuration name&gt;
</pre></div>


<h3 class="wp-block-heading" id="create-new-collection"><strong>Create New Collection:</strong></h3>



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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
&gt; curl &#039;&lt;Solr HTTP Endpoint&gt;admin/collections?action=CREATE&amp;name=&lt;collectionName&gt;&amp;collection.configName=&lt;configName&gt;&amp;numShards=1&#039;
</pre></div>


<h3 class="wp-block-heading" id="windows"><strong>Windows:</strong></h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
$ curl.exe &quot;&lt;Solr HTTP Endpoint&gt;admin/collections?action=CREATE&amp;name=&lt;collectionName&gt;&amp;collection.configName=&lt;configName&gt;&amp;numShards=1&quot; -k
</pre></div>


<h2 class="wp-block-heading" id="drup">Step 4: Install Drupal</h2>



<p>Please refer to the official <a href="https://www.drupal.org/docs/7/install" target="_blank" rel="noreferrer noopener">Drupal 7 installation page</a>.</p>



<h2 class="wp-block-heading" id="mods">Step 5: Install Search API / Search API Solr Module</h2>



<p>Install the Drupal <a href="https://www.drupal.org/project/search_api" target="_blank" rel="noreferrer noopener">Search API Module</a>.</p>



<p>Once the Search API is installed, you can add the <a href="https://www.drupal.org/project/search_api_solr" target="_blank" rel="noreferrer noopener">Search API Solr Module</a>.</p>



<p>Finally, you will need to enable the installed modules. Enable <strong>Search API</strong> and <strong>Solr Search</strong>.</p>



<h2 class="wp-block-heading" id="confAPI">Step 6: Configure the Search API Solr Module</h2>



<p>Now that the modules have been enabled, click on the <strong>Configuration</strong> tab. Look for section <strong>SEARCH AND METADATA</strong> and click on <strong>Search API</strong> to configure it.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/Drupal7Guide1.png" alt="SearchStax Solr Drupal 7 Search and Metadata"/></figure>



<p>Once there, click <strong>Add Server</strong>.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/Drupal7Guide2.png" alt="SearchStax Solr Drupal 7 Overview Tab"/></figure>



<p>Give your server a name. Make sure the <strong>Service class</strong> is set to <strong>Solr service</strong>. Check that <strong>HTTP protocol</strong> is set to <strong>https</strong>. The <strong>Solr host</strong> is the deployment&#8217;s <strong>Solr HTTP Endpoint</strong> without the <strong>/solr/</strong> element. For incoming connections from Drupal, the <strong>Solr port</strong> is always <strong>443</strong>. The <strong>Solr path</strong> is <strong>/solr/</strong> plus the name of the collection, such as <strong>/solr/testcollection</strong>.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/Drupal7Guide3.png" alt="SearchStax Solr Drupal 7 Add Server"/></figure>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/Drupal7Guide4-1.png" alt="SearchStax Solr Drupal 7 Solr Service"/></figure>



<p>If your configuration settings are valid, you will see a message saying that the information was saved successfully.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/Drupal7Guide5.png" alt="SearchStax Solr Drupal 7 New Server"/></figure>



<p>Next you will need to define an index. In the <strong>Search API</strong> configuration screen, click on <strong>Add Index</strong>. Give your index a name, and select the item type you wish to index.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/Drupal7Guide6.png" alt="SearchStax Solr Drupal 7 New Index"/></figure>



<h2 class="wp-block-heading" id="sample-content">Step 7: Optional &#8211; Add Sample Content</h2>



<p>Install the <strong>Devel</strong> module: <a href="https://www.drupal.org/project/devel" target="_blank" rel="noreferrer noopener">https://www.drupal.org/project/devel</a>. Then, enable Devel and Devel generate.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/image26.png" alt="SearchStax Solr Drupal 7 Devel"/></figure>



<p>You will see new options in multiple menus. Go to <strong>Administration &gt; Configuration</strong>, and scroll down to the <strong>Development</strong> section. Here you have options to <strong>Generate content</strong> via Devel.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/image06.png" alt="SearchStax Solr Drupal 7 Devel Settings"/></figure>



<p>Click on <strong>Generate Content</strong>.</p>



<p>Select a <strong>Content Type</strong> and enter the number of nodes. For example, selecting <strong>Article</strong> and typing &#8220;20&#8221; nodes will produce 20 new articles filled with dummy data.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/image23.png" alt="SearchStax Solr Drupal 7 Content"/></figure>



<h2 class="wp-block-heading" id="index">Step 8: Optional &#8211; Manually Index Your Site</h2>



<p>A cron job will periodically index your site automatically, but if you want to see your results immediately go to the Search API configuration screen and click on the index created earlier. At the bottom, click on the <strong>Index now</strong> button.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/image04.png" alt="SearchStax Solr Drupal 7 Index Data"/></figure>



<p>After you begin, you will see a progress bar. Once it reaches 100%, you will get a success message.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/image01.png" alt="SearchStax Solr Drupal 7 Index Data"/></figure>



<p>After your site has been indexed, you can view and query the data in Solr.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/image20-1.png" alt="SearchStax Solr Drupal 7 Query"/></figure>



<h2 class="wp-block-heading" id="secure">Step 9: Optional &#8211; Secure Your Site</h2>



<p>SearchStax and Solr provide some optional security features that can help you lock down your Solr deployment. Please consider some or all of the following security options.</p>



<h3 class="wp-block-heading" id="connecting-to-the-searchstax-cluster">Connecting to the Managed Search Cluster</h3>



<p>SearchStax recommends that you situate your application infrastructure in the same local network as your hosting provider (for example, the same AWS or Azure region). Internal network security for these hosting providers is extremely high and eliminates any chance of a hacker potentially sniffing your network traffic.</p>



<p>If your application is hosted elsewhere, try to host it as close to your search infrastructure as possible. This can be done by choosing the Cloud Provider Region which is closest to your application. This improves both security and performance.</p>



<p>Note that all connections to the SearchStax Dashboard use HTTPS, which encrypts your traffic in transit.</p>



<h3 class="wp-block-heading" id="ip-filtering">IP Filtering</h3>



<p>SearchStax can limit access to a deployment to specific IP addresses. You can configure access for Zookeeper and Solr servers separately. Instructions will be found at <a href="/docs/searchstax-cloud-deployment-security/#filtering/">SearchStax IP Filtering</a>.</p>



<h3 class="wp-block-heading" id="tenant-users">Tenant Users</h3>



<p>Each SearchStax account is restricted to the owner (and admin) of that account plus any SearchStax &#8220;tenant users&#8221; who have been granted access to that account by the owner. The additional users may be enrolled as normal SearchStax operators or as admins at the owner&#8217;s discretion. See <a href="/docs/searchstax-cloud-user-roles/">Managing Users</a>.</p>



<h3 class="wp-block-heading" id="solr-authentication-and-authorization">Solr Authentication and Authorization</h3>



<p>Solr offers an Authentication and Authorization feature that lets you set up username/password protection for the Solr server dashboard. SearchStax makes it very easy to enable this feature.</p>



<p>Note that Solr user accounts are independent of SearchStax user accounts.</p>



<p>If you set a username/password for Solr, you&#8217;ll need to edit the Search API server (under &#8220;Basic HTTP authentication&#8221;) and input the same information there.</p>



<p>The only warning is that enabling/disabling Solr authentication forces the Solr servers to restart. See <a href="/docs/searchstax-cloud-deployment-security/#solrauth/">Solr Authentication and Authorization</a>.</p>



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



<p>Do not hesitate to contact the <a href="mailto:support@demo.searchstax.com?subject=How%20to%20Install%20Apache%20Solr%20on%20a%20Drupal%207%20Website%20using%20SearchStax%20Cloud" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstax-cloud-drupal-7/">Managed Search for Drupal 7</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://demo.searchstax.com/docs/searchstax-cloud-drupal-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Managed Search for Drupal 8</title>
		<link>https://demo.searchstax.com/docs/searchstax-cloud-drupal-8/</link>
					<comments>https://demo.searchstax.com/docs/searchstax-cloud-drupal-8/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 15 Feb 2021 11:29:04 +0000</pubDate>
				<category><![CDATA[Drupal]]></category>
		<guid isPermaLink="false">http://mt01.ph5s.com/?p=6826</guid>

					<description><![CDATA[<p>Install Apache Solr on a Drupal 8 Website using Managed Search Overview The SearchStax Managed Search service can be used to install Apache Solr on a Drupal 8 website using&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/searchstax-cloud-drupal-8/">Continue reading <span class="screen-reader-text">Managed Search for Drupal 8</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstax-cloud-drupal-8/">Managed Search for Drupal 8</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading" id="how-to-install-apache-solr-on-a-drupal-8-website-using-searchstax">Install Apache Solr on a Drupal 8 Website using  Managed Search</h1>



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



<h2 class="wp-block-heading" id="overview">Overview</h2>



<p>The SearchStax Managed Search service can be used to install <a href="https://www.searchstax.com/solutions/managed-solr-service-for-drupal/">Apache Solr on a Drupal 8</a> website using Drupal&#8217;s <strong>Search API</strong> and its <strong>Search API Solr</strong> modules.</p>



<p>This article was based on a blog post &#8211; <a href="https://anant.us/blog/platform/how-to-set-up-a-drupal-website-connected-to-a-searchstax-deployment/" target="_blank" rel="noreferrer noopener">How to Set Up a Drupal Website Connected to a SearchStax Solr Deployment</a> &#8211; by Thomas Hada of Anant.</p>



<p>This example uses Drupal 8.3 and Solr 6.4.2. </p>



<h2 class="wp-block-heading" id="basic-steps">Basic Steps:</h2>



<ol class="wp-block-list">
<li><a href="#stax" data-type="internal" data-id="#stax">Create a new deployment in SearchStax</a>.</li>



<li><a href="#zoo" data-type="internal" data-id="#zoo">Install the Zookeeper script</a>.</li>



<li><a href="#config" data-type="internal" data-id="#config">Upload a custom configuration to your Solr Server</a>.</li>



<li><a href="#drup" data-type="internal" data-id="#drup">Install Drupal</a>.</li>



<li><a href="#mods" data-type="internal" data-id="#mods">Install the <strong>Search API</strong> and <strong>Search API Solr</strong> modules</a>.</li>



<li><a href="#confAPI" data-type="internal" data-id="#confAPI">Configure the <strong>Search API Solr</strong> module</a>.</li>



<li><a href="#sampale-content" data-type="internal" data-id="#sampale-content">Optional &#8211; Add sample content</a>.</li>



<li><a href="#index" data-type="internal" data-id="#index">Optional &#8211; Manually index your site</a>.</li>



<li><a href="#secure" data-type="internal" data-id="#secure">Optional &#8211; Secure your site</a></li>
</ol>



<h2 class="wp-block-heading" id="stax">Step 1: Create a New Deployment in Managed Search</h2>



<p>Assuming you have already created a SearchStax account and do not already have a deployment set up, click on the <strong>Deployments</strong> tab and then click on the <strong>Create New Deployment</strong> button at the top. Enter a deployment name, and select the most appropriate region, plan, and Solr version for your needs. In this example we will be using Solr 6.4.2.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="951" height="845" src="https://demo.searchstax.com/docs/wp-content/uploads/2022/10/image-42.png" alt="" class="wp-image-13465" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2022/10/image-42.png 951w, https://demo.searchstax.com/docs/wp-content/uploads/2022/10/image-42-300x267.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2022/10/image-42-768x682.png 768w" sizes="auto, (max-width: 951px) 100vw, 951px" /></figure>



<p>Once you create your deployment, you will see it in the Deployments dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="134" src="https://demo.searchstax.com/docs/wp-content/uploads/2022/10/image-43-1024x134.png" alt="" class="wp-image-13466" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2022/10/image-43-1024x134.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2022/10/image-43-300x39.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2022/10/image-43-768x100.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2022/10/image-43.png 1104w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Clicking on the name of the deployment will give you pertinent information about your deployment&#8217;s servers. The <strong>Solr HTTP Endpoint</strong> will take you to your Solr server dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="533" src="https://demo.searchstax.com/docs/wp-content/uploads/2024/06/image-14-1024x533.png" alt="" class="wp-image-18911" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2024/06/image-14-1024x533.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2024/06/image-14-300x156.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2024/06/image-14-768x400.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2024/06/image-14.png 1200w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading" id="zoo">Step 2: Install the Zookeeper Script</h2>



<p><a href="https://zookeeper.apache.org/" target="_blank" rel="noreferrer noopener">Apache ZooKeeper</a> is a centralized service for maintaining configuration information. In a SearchStax deployment, Zookeeper acts as a centralized repository for your Solr configuration files.</p>



<p>We have created a script to help you interact with Zookeeper. This script makes it easier to connect to Zookeeper and upload your Solr configurations. We provide both Linux and Windows versions of the script.</p>



<p>We have made the script available in several different ways. Choose the one that is easiest for you. All methods download the same <strong>master.zip</strong> or <strong>searchstax-client-master.zip</strong> file. This file contains both the Linux and Windows scripts. Unzip the file in a directory of your choice.</p>



<ul class="wp-block-list">
<li>From the Linux command line, you can use <strong>wget https://github.com/searchstax/searchstax-client/archive/master.zip</strong>.</li>



<li>If you have a GitHub account, you can follow this link to a repository that contains the script and its libraries. Look for the green <strong>Clone or Download</strong> button to create and download a ZIP file. <a href="https://github.com/searchstax/searchstax-client" target="_blank" rel="noreferrer noopener">https://github.com/searchstax/searchstax-client</a></li>



<li>If you are using Windows, or are not familiar with GitHub, you can download the ZIP file directly here: <a href="https://github.com/searchstax/searchstax-client/archive/master.zip" target="_blank" rel="noreferrer noopener">searchstax-client-master.zip</a>.</li>
</ul>



<p>Unzip the file. The top-level directory is <strong>\searchstax-client-master</strong>. Navigate to the <strong>scripts</strong> subdirectory (<strong>\searchstax-client-master\solr-6\scripts</strong>). Locate <strong>zkcli.sh</strong> and <strong>zkcli.bat</strong> in that directory. These are the Linux and Windows versions of the script, respectively.</p>



<h2 class="wp-block-heading" id="config">Step 3: Upload a Custom Configuration to Your Solr Server</h2>



<p>Download the <strong>Search API Solr</strong> module files: <a href="https://www.drupal.org/project/search_api_solr/" target="_blank" rel="noreferrer noopener">https://www.drupal.org/project/search_api_solr</a></p>



<p>Included in the <strong>Search API Solr</strong> download are several configurations in the solr-conf folder, with subfolders 4.x, 5.x, and 6.x for the respective Solr versions.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/image12-a.png" alt="SearchStax Solr Drupal 8 Configs"/></figure>



<p>SearchStax uses Apache ZooKeeper for maintaining configuration information. Upload the appropriate configuration files via Zookeeper and create a new collection. If you have your Zookeeper script already, the two commands you will need are as follows:</p>



<h3 class="wp-block-heading" id="upload-configuration"><strong>Upload Configuration:</strong></h3>



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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
&gt; ./zkcli.sh -zkhost &lt;zookeeper URL&gt; -cmd upconfig -confdir &lt;Solr configuration&gt; -confname &lt;configuration name&gt;
</pre></div>


<h3 class="wp-block-heading" id="upload-configuration"><strong>Windows</strong>:</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
$ zkcli.bat -zkhost &lt;zookeeper URL&gt; -cmd upconfig -confdir &lt;Solr configuration&gt; -confname &lt;configuration name&gt;
</pre></div>


<h3 class="wp-block-heading" id="create-new-collection"><strong><strong>Create New Collection:</strong></strong></h3>



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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
&gt; curl &#039;&lt;Solr HTTP Endpoint&gt;admin/collections?action=CREATE&amp;name=&lt;collectionName&gt;&amp;collection.configName=&lt;configName&gt;&amp;numShards=1&#039;
</pre></div>


<h3 class="wp-block-heading" id="windows"><strong><strong><strong>Windows</strong>:</strong></strong></h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
$ curl.exe &quot;&lt;Solr HTTP Endpoint&gt;admin/collections?action=CREATE&amp;name=&lt;collectionName&gt;&amp;collection.configName=&lt;configName&gt;&amp;numShards=1&quot; -k
</pre></div>


<h2 class="wp-block-heading" id="drup">Step 4: Install Drupal</h2>



<p>Please refer to the official <a href="http://drupal.org/docs/installing-drupal/" target="_blank" rel="noreferrer noopener">Drupal 8 installation page</a>. </p>



<h2 class="wp-block-heading" id="mods">Step 5: Install Search API / Search API Solr Module</h2>



<p>Install the Drupal <a href="https://www.drupal.org/project/search_api/" target="_blank" rel="noreferrer noopener">Search API Module</a>.</p>



<p>Once the Search API is installed, you can add the <a href="https://www.drupal.org/project/search_api_solr/" target="_blank" rel="noreferrer noopener">Search API Solr Module</a>.</p>



<p>Before continuing, you may need to install the <a href="https://www.drupal.org/docs/develop/using-composer/using-composer-to-install-drupal-and-manage-dependencies" target="_blank" rel="noreferrer noopener">Composer Dependencies</a>.</p>



<p>Finally, you will need to enable the installed modules. Enable the following items: <strong>Search API</strong> and <strong>Solr Search</strong>.</p>



<h2 class="wp-block-heading" id="confAPI">Step 6: Configure the Search API Solr Module</h2>



<p>Now that the modules have been enabled, click on the <strong>Configuration</strong> tab. Look for section <strong>SEARCH AND METADATA</strong> and click on <strong>Search API</strong> to configure it.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/image27.png" alt="SearchStax Solr Drupal 8 Metadata"/></figure>



<p>Once there, click <strong>Add Server</strong>.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/image05.png" alt="SearchStax Solr Drupal 8 API"/></figure>



<p>Give your server a name. Make sure the <strong>Backend</strong> is set to <strong>Solr</strong>. Check that <strong>HTTP protocol</strong> is set to <strong>https</strong>. The <strong>Solr host</strong> is the deployment&#8217;s <strong>Solr HTTP Endpoint</strong> without the <strong>/solr/</strong> element. For incoming connections from Drupal, the <strong>Solr port</strong> is always <strong>443</strong>. The <strong>Solr core</strong> is the name of the collection.</p>



<p>Note that the <strong>Solr path</strong> was <strong>/solr</strong> in version 8.x-2.7 of the Search API Solr Module, but it changed to <strong>/</strong> (no &#8220;solr&#8221;) in version 8.x-3.1. See <a href="https://www.drupal.org/docs/8/modules/search-api-solr/search-api-solr-case-studies/upgrade-search-api-solr-from-2x-to-31-on/" target="_blank" rel="noreferrer noopener">Upgrade Search API Solr from 2.x to 3.1</a> for further information.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/image18.png" alt="SearchStax Solr Drupal 8 Add Server"/></figure>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/image17-2.png" alt="SearchStax Solr Drupal 8 Add server"/></figure>



<p>If your configuration settings are valid, you will see a message saying that the information was saved successfully.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/image03-1.png" alt="SearchStax Solr Drupal 8 Success"/></figure>



<p>Next you will need to define an index. In the <strong>Search API</strong> configuration screen, click on <strong>Add Index</strong>.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/image0523.png" alt="SearchStax Solr Drupal Add Index"/></figure>



<p>Give your index a name, and select the data sources you wish to index. For this example, select <strong>Comment</strong> and <strong>Content</strong>. Also, at the bottom of the page make sure that you select the <strong>Server</strong> created earlier.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/image21.png" alt="SearchStax Solr Drupal 8 Add Index"/></figure>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/image00.png" alt="SearchStax Solr Drupal 8 Add index"/></figure>



<h2 class="wp-block-heading" id="sampale-content">Step 7: Optional &#8211; Add Sample Content</h2>



<p>Install the <strong>Devel</strong> module: <a href="https://www.drupal.org/project/devel" target="_blank" rel="noreferrer noopener">https://www.drupal.org/project/devel</a>. Then, enable Devel and Devel generate.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/Drupal8Development.png" alt="SearchStax Solr Drupal 8 Devel"/></figure>



<p>You will see new options in multiple menus. Go to <strong>Manage &gt; Configuration</strong>, and scroll down to the <strong>Development</strong> section. Here you have options to <strong>Generate content</strong> via Devel.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/Drupal8DevelSettings.png" alt="SearchStax Solr Drupal 8 Devel Settings"/></figure>



<p>Click on <strong>Generate Content</strong>.</p>



<p>Select a <strong>Content Type</strong> and enter the number of nodes. For example, selecting <strong>Article</strong> and typing &#8220;20&#8221; nodes will produce 20 new articles filled with dummy data.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/Drupal8GenContent.png" alt="SearchStax Solr Drupal 8 Content"/></figure>



<h2 class="wp-block-heading" id="index">Step 8: Optional &#8211; Manually Index Your Site</h2>



<p>A cron job will periodically index your site automatically, but if you want to see your results immediately go to the Search API configuration screen and click on the index created earlier. At the bottom, click on the <strong>Index now</strong> button.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/Drupal8IndexStart.png" alt="SearchStax Solr Drupal 8 Index"/></figure>



<p>After you begin, you will see a progress bar. Once it reaches 100%, you will get a success message.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/Drupal8IndexFinish.png" alt="SearchStax Solr Drupal 8 Success"/></figure>



<p>After your site has been indexed, you can view and query the data in Solr.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1639" height="936" src="https://demo.searchstax.com/docs/wp-content/uploads/2021/02/image20-1.png" alt="SearchStax Solr Drupal 8 Query" class="wp-image-6888"/></figure>



<h2 class="wp-block-heading" id="secure">Step 9: Optional &#8211; Secure Your Site</h2>



<p>SearchStax and Solr provide some optional security features that can help you lock down your Solr deployment. Please consider some or all of the following security options.</p>



<h3 class="wp-block-heading" id="connecting-to-the-searchstax-cluster">Connecting to the Managed Search Cluster</h3>



<p>SearchStax recommends that you situate your application infrastructure in the same local network as your hosting provider (for example, the same AWS or Azure region). Internal network security for these hosting providers is extremely high and eliminates any chance of a hacker potentially sniffing your network traffic.</p>



<p>If your application is hosted elsewhere, try to host it as close to your search infrastructure as possible. This can be done by choosing the Cloud Provider Region which is closest to your application. This improves both security and performance.</p>



<p>Note that all connections to the SearchStax Dashboard use HTTPS, which encrypts your traffic in transit.</p>



<h3 class="wp-block-heading" id="ip-filtering">IP Filtering</h3>



<p>SearchStax can limit access to a deployment to specific IP addresses. You can configure access<br>for Zookeeper and Solr servers separately. Instructions will be found at <a href="/docs/searchstax-cloud-deployment-security/#filtering/">SearchStax IP Filtering</a>.</p>



<h3 class="wp-block-heading" id="tenant-users">Tenant Users</h3>



<p>Each SearchStax account is restricted to the owner (and admin) of that account plus any SearchStax &#8220;tenant users&#8221; who have been granted access to that account by the owner. The additional users may be enrolled as normal SearchStax operators or as admins at the owner&#8217;s discretion. See <a href="/docs/searchstax-cloud-user-roles/">Managing Users</a>.</p>



<h3 class="wp-block-heading" id="solr-authentication-and-authorization">Solr Authentication and Authorization</h3>



<p>Solr offers an Authentication and Authorization feature that lets you set up username/password protection for the Solr server dashboard. SearchStax makes it very easy to enable this feature.</p>



<p>Note that Solr user accounts are independent of SearchStax user accounts.</p>



<p>If you set a username/password for Solr, you&#8217;ll need to edit the Search API server (under &#8220;Basic HTTP authentication&#8221;) and input the same information there.</p>



<p>The only warning is that enabling/disabling Solr authentication forces the Solr servers to restart. See <a href="/docs/searchstax-cloud-deployment-security/#solrauth/">Solr Authentication and Authorization</a>.</p>



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



<p>Do not hesitate to contact the <a href="mailto:support@demo.searchstax.com?subject=How%20to%20Install%20Apache%20Solr%20on%20a%20Drupal%208%20Website%20using%20SearchStax%20Cloud" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstax-cloud-drupal-8/">Managed Search for Drupal 8</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://demo.searchstax.com/docs/searchstax-cloud-drupal-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Managed Search for Drupal 9</title>
		<link>https://demo.searchstax.com/docs/drupal-9/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Tue, 19 Dec 2023 19:55:38 +0000</pubDate>
				<category><![CDATA[Drupal]]></category>
		<guid isPermaLink="false">https://demo.searchstax.com/docs/?p=16874</guid>

					<description><![CDATA[<p>Install Apache Solr on a Drupal 9 Website using Managed Search Overview The SearchStax Managed Search service can be used to install Apache Solr on a Drupal 9 website using&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/drupal-9/">Continue reading <span class="screen-reader-text">Managed Search for Drupal 9</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/drupal-9/">Managed Search for Drupal 9</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading" id="h-install-apache-solr-on-a-drupal-9-website-using-managed-search">Install Apache Solr on a Drupal 9 Website using Managed Search</h1>



<p></p>



<p></p>



<p></p>



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



<h2 class="wp-block-heading" id="Overview">Overview</h2>



<p>The SearchStax Managed Search service can be used to install <a href="https://www.searchstax.com/solutions/managed-solr-service-for-drupal/"><u>Apache Solr on a Drupal </u></a>9 website using Drupal’s Search API and its Search API Solr modules.</p>



<p>This article was based on a blog post – <a href="https://anant.us/blog/platform/how-to-set-up-a-drupal-website-connected-to-a-searchstax-deployment/">How to Set Up a Drupal Website Connected to a SearchStax Solr Deployment</a> – by Thomas Hada of Anant.</p>



<p>This example uses Drupal 9.5.11 and Solr 8.11.2. </p>



<h2 class="wp-block-heading" id="Basic-Steps:">Basic Steps:</h2>



<ol class="wp-block-list" start="1">
<li><a href="#Step-1:-Create-a-New-Deployment-in-SearchStax">Create a new deployment in Managed Search</a>.</li>



<li><a href="#Step-2:-Create-a-Solr-Collection">Create a Solr Collection</a>.</li>



<li><a href="#Step-3:-Install-Drupal">Install Drupal</a>.</li>



<li><a href="#Step-4:-Install-Search-API-/-Search-API-Solr-Module">Install the Search API and Search API Solr modules</a>.</li>



<li><a href="#Step-5:-Configure-the-Search-API-Module">Configure the Search API module Server</a>.</li>



<li><a href="#Step-6:-Configure-the-Search-API-module-Index">Configure the Search API module Index</a>.</li>



<li><a href="#Step-7:-Index-Your-Site">Optional – Index your site</a>.</li>



<li><a href="#Step-8:-Optional-–-Secure-Your-Site">Optional – Secure your site</a></li>
</ol>



<h2 class="wp-block-heading" id="Step-1:-Create-a-New-Deployment-in-SearchStax">Step 1: Create a New Deployment in Managed Search</h2>



<p>Assuming you have already created a SearchStax account and do not already have a deployment set up, click on the Dedicated tab and then click on the Create New Deployment button at the top. Enter a deployment name, and select the most appropriate region, plan, and Solr version for your needs. In this example we will be using Solr 8.11.2.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="664" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1024x664.png" alt="" class="wp-image-16848" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1024x664.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-300x194.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-768x498.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1536x995.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2048x1327.png 2048w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1568x1016.png 1568w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Once you create your deployment, you will see it in the Deployments dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="289" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1024x289.png" alt="" class="wp-image-16849" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1024x289.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-300x85.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-768x217.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1536x434.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1568x443.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Clicking on the name of the deployment will give you pertinent information about your deployment’s servers. The Solr HTTP Endpoint will take you to your Solr server dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="500" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-1024x500.png" alt="" class="wp-image-16850" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-1024x500.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-300x146.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-768x375.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-1536x750.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-1568x765.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Click on Auth in the Security tab to create an Authentication username and password. Enable Auth.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="597" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-1024x597.png" alt="" class="wp-image-16851" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-1024x597.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-300x175.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-768x448.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-1536x896.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-1568x915.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Add a user with Admin permissions. Keep your credentials handy for next steps.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="646" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-1024x646.png" alt="" class="wp-image-16853" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-1024x646.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-300x189.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-768x485.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-1536x969.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-1568x989.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4.png 1572w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading" id="Step-2:-Create-a-Solr-Collection">Step 2: Create a Solr Collection</h2>



<p>Create a new Solr collection using the commands below. For now, use the <strong>_default</strong> config for the <strong>collection.configName</strong> parameter. Later in the guide, we will replace the config with one Drupal recommends.</p>



<p>The username and password is the one you defined in Step 1 when adding an Admin user.</p>



<h3 class="wp-block-heading" id="Create-New-Collection:">Create New Collection:</h3>



<h3 class="wp-block-heading" id="Linux:">Linux:</h3>



<figure class="wp-block-table"><table><tbody><tr><td><code>&gt; curl '&lt;Solr HTTP Endpoint&gt;admin/collections?action=CREATE&amp;name=&lt;collectionName&gt;&amp;collection.configName=&lt;configName&gt;&amp;numShards=1' --user username:password</code></td></tr></tbody></table></figure>



<h3 class="wp-block-heading" id="Windows:">Windows:</h3>



<figure class="wp-block-table"><table><tbody><tr><td><code>$ curl.exe "&lt;Solr HTTP Endpoint&gt;admin/collections?action=CREATE&amp;name=&lt;collectionName&gt;&amp;collection.configName=&lt;configName&gt;&amp;numShards=1" -k -u username:password</code></td></tr></tbody></table></figure>



<h2 class="wp-block-heading" id="Step-3:-Install-Drupal">Step 3: Install Drupal</h2>



<p>We will assume you have Drupal 9 installed. If not please refer to the official <a href="https://www.drupal.org/">Drupal 9 installation page</a>.</p>



<h2 class="wp-block-heading" id="Step-4:-Install-Search-API-/-Search-API-Solr-Module">Step 4: Install Search API / Search API Solr Module</h2>



<p>Install the Drupal <a href="https://www.drupal.org/project/search_api/">Search API Module</a>. In this case, we are installing version 1.27.</p>



<p>Once the Search API is installed, you can add the <a href="https://www.drupal.org/project/search_api_solr/">Search API Solr Module</a>. We are installing version 4.3.</p>



<p>Before continuing, you may need to install the <a href="https://www.drupal.org/docs/develop/using-composer/using-composer-to-install-drupal-and-manage-dependencies">Composer Dependencies</a>.</p>



<p>Finally, you will need to enable the installed modules. Enable the following items: <strong>Search API</strong> and <strong>Search API Solr</strong>, and <strong>Search API Solr Admin</strong>.</p>



<h2 class="wp-block-heading" id="Step-5:-Configure-the-Search-API-Module">Step 5: Configure the Search API Module</h2>



<p>Now that the modules have been enabled, click on the Configuration tab. Look for section SEARCH AND METADATA and click on Search API to configure it.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="308" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-1024x308.png" alt="" class="wp-image-16854" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-1024x308.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-300x90.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-768x231.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-1536x462.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-1568x471.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Once there, click Add Server.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="615" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-5-1024x615.png" alt="" class="wp-image-16855" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-5-1024x615.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-5-300x180.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-5-768x461.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-5.png 1488w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Give your server a name. Make sure the Backend is set to Solr. Check that HTTP protocol is set to https. The Solr host is the deployment’s Solr HTTP Endpoint without the /solr/ element. For incoming connections from Drupal, the Solr port is always 443. The Solr core is the name of the collection defined in Step 2.</p>



<p>Note that the Solr path was /solr in version 8.x-2.7 of the Search API Solr Module, but it changed to / (no “solr”) in version 8.x-3.1. See <a href="https://www.drupal.org/docs/8/modules/search-api-solr/search-api-solr-case-studies/upgrade-search-api-solr-from-2x-to-31-on/">Upgrade Search API Solr from 2.x to 3.1</a> for further information.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="874" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-1024x874.png" alt="" class="wp-image-16856" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-1024x874.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-300x256.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-768x655.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-1536x1311.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-1568x1338.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Add the Solr node, Solr port, and Default Solr Collection. The Solr node can be found in the Endpoints section of your deployment under Solr HTTP Endpoint. The port is 443. The Default Solr Collection is the Collection you created in step 2.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="870" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-1024x870.png" alt="" class="wp-image-16857" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-1024x870.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-300x255.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-768x652.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-1536x1304.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-1568x1332.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Ensure you’ve added the correct Basic Authentication username and password defined in Step 1.<img decoding="async" data-testid="media-image" draggable="false" style="position: absolute; left: 50%; top: 50%; object-fit: contain; image-orientation: none; transform: translate(-50%, -50%); width: 100%;" src="blob:https://searchstax.atlassian.net/fce1f25e-354b-4a88-9326-b162bf7baa75#media-blob-url=true&amp;id=aa862feb-c5fc-46eb-85cd-0a85df5dd844&amp;collection=contentId-3020816385&amp;contextId=3020816385&amp;height=399&amp;width=853&amp;alt=" alt=""></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="479" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4-1024x479.png" alt="" class="wp-image-16858" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4-1024x479.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4-300x140.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4-768x359.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4.png 1536w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Click save at the bottom of the page.</p>



<p>If your configuration settings are valid, you will see a message saying that the information was saved successfully. Under Server Connection, it should read “The Solr server could be reached”. If not, you need to redo adding a Server.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="531" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-1024x531.png" alt="" class="wp-image-16859" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-1024x531.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-300x156.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-768x398.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-1536x796.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-1568x813.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Next we will replace the _default Solr schema causing the error message of incompatible Solr Schema. Click on “upload config.zip”.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="362" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-1024x362.png" alt="" class="wp-image-16861" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-1024x362.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-300x106.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-768x271.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-1536x543.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-1568x554.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5.png 1851w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Check Upload Button and Click Upload.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="367" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-8-1024x367.png" alt="" class="wp-image-16862" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-8-1024x367.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-8-300x108.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-8-768x275.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-8.png 1400w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>You will get a success message.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="385" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-1024x385.png" alt="" class="wp-image-16863" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-1024x385.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-300x113.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-768x289.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-1536x577.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-1568x589.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading" id="Step-6:-Configure-the-Search-API-module-Index">Step 6: Configure the Search API Module Index</h2>



<p>Next you will need to define an index. In the Search API configuration screen, click on Add Index.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="231" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-1024x231.png" alt="" class="wp-image-16864" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-1024x231.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-300x68.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-768x173.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-1536x346.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-1568x353.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Give your index a name, and select the data sources you wish to index. For this example, select Content.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="895" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-1024x895.png" alt="" class="wp-image-16865" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-1024x895.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-300x262.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-768x671.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-1536x1343.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-1568x1371.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>At the bottom of the page make sure that you select the Server created earlier. Click Save and add fields.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="902" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-10-1024x902.png" alt="" class="wp-image-16866" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-10-1024x902.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-10-300x264.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-10-768x676.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-10.png 1358w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Add the fields you would like to Index. Take note of field types.</p>



<h2 class="wp-block-heading" id="Step-7:-Index-Your-Site">Step 7: Optional &#8211; Index Your Site</h2>



<p>A cron job will periodically index your site automatically, but if you want to see your results immediately go to the Search API configuration screen and click on the index created earlier. At the bottom, click on the Index now button.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="882" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-1024x882.png" alt="" class="wp-image-16868" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-1024x882.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-300x258.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-768x661.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-1536x1323.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-1568x1350.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>After you begin, you will see a progress bar. Once it reaches 100%, you will get a success message.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="387" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-1024x387.png" alt="" class="wp-image-16869" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-1024x387.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-300x113.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-768x290.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-1536x580.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-1568x592.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>After your site has been indexed, you can view and query the data in Solr.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="610" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-1024x610.png" alt="" class="wp-image-16870" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-1024x610.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-300x179.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-768x457.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-1536x915.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-1568x934.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading" id="Step-8:-Optional-–-Secure-Your-Site">Step 8: Optional – Secure Your Site</h2>



<p>SearchStax and Solr provide some optional security features that can help you lock down your Solr deployment. Please consider some or all of the following security options.</p>



<h3 class="wp-block-heading" id="Connecting-to-the-SearchStax-Cluster">Connecting to the SearchStax Cluster</h3>



<p>SearchStax recommends that you situate your application infrastructure in the same local network as your hosting provider (for example, the same AWS or Azure region). Internal network security for these hosting providers is extremely high and eliminates any chance of a hacker potentially sniffing your network traffic.</p>



<p>If your application is hosted elsewhere, try to host it as close to your search infrastructure as possible. This can be done by choosing the Cloud Provider Region which is closest to your application. This improves both security and performance.</p>



<p>Note that all connections to the SearchStax Dashboard use HTTPS, which encrypts your traffic in transit.</p>



<h3 class="wp-block-heading" id="IP-Filtering">IP Filtering</h3>



<p>SearchStax can limit access to a deployment to specific IP addresses. You can configure access<br>for Zookeeper and Solr servers separately. Instructions will be found at <a href="/docs/searchstax-cloud-deployment-security/#filtering/">SearchStax IP Filtering</a>.</p>



<h3 class="wp-block-heading" id="Tenant-Users">Tenant Users</h3>



<p>Each SearchStax account is restricted to the owner (and admin) of that account plus any SearchStax “tenant users” who have been granted access to that account by the owner. The additional users may be enrolled as normal SearchStax operators or as admins at the owner’s discretion. See <a href="/docs/searchstax-cloud-user-roles/">Managing Users</a>.</p>



<h3 class="wp-block-heading" id="Solr-Authentication-and-Authorization">Solr Authentication and Authorization</h3>



<p>Solr offers an Authentication and Authorization feature that lets you set up username/password protection for the Solr server dashboard. SearchStax makes it very easy to enable this feature.</p>



<p>Note that Solr user accounts are independent of SearchStax user accounts.</p>



<p>If you set a username/password for Solr, you’ll need to edit the Search API server (under “Basic HTTP authentication”) and input the same information there.</p>



<p>The only warning is that enabling/disabling Solr authentication forces the Solr servers to restart. See <a href="/docs/searchstax-cloud-deployment-security/#solrauth/">Solr Authentication and Authorization</a>.</p>



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



<p>Do not hesitate to contact the SearchStax Support Desk.</p>
<p>The post <a href="https://demo.searchstax.com/docs/drupal-9/">Managed Search for Drupal 9</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Managed Search for Drupal 10</title>
		<link>https://demo.searchstax.com/docs/drupal-10-2/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Tue, 19 Dec 2023 21:23:45 +0000</pubDate>
				<category><![CDATA[Drupal]]></category>
		<guid isPermaLink="false">https://demo.searchstax.com/docs/?p=16878</guid>

					<description><![CDATA[<p>See how to set up SearchStax Managed Cloud on Drupal 10 using Drupal's Search API and Search API Solr modules.</p>
<p>The post <a href="https://demo.searchstax.com/docs/drupal-10-2/">Managed Search for Drupal 10</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading" id="h-install-apache-solr-on-a-drupal-10-website-using-managed-search">Install Apache Solr on a Drupal 10 Website using Managed Search</h1>



<p></p>



<p></p>



<p></p>



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



<h2 class="wp-block-heading" id="Overview">Overview</h2>



<p>The SearchStax Managed Search service can be used to install <a href="https://www.searchstax.com/solutions/managed-solr-service-for-drupal/"><u>Apache Solr on a Drupal </u></a>10 website using Drupal’s Search API and its Search API Solr modules.</p>



<p>This article was based on a blog post – <a href="https://anant.us/blog/platform/how-to-set-up-a-drupal-website-connected-to-a-searchstax-deployment/">How to Set Up a Drupal Website Connected to a SearchStax Solr Deployment</a> – by Thomas Hada of Anant.</p>



<p>This example uses Drupal 10.1.4 and Solr 8.11.2. Learn more about the <a href="https://www.drupal.org/about/10">Drupal 10 digital experience platform (DXP)</a>.</p>



<h2 class="wp-block-heading" id="Basic-Steps:">Basic Steps:</h2>



<ol class="wp-block-list" start="1">
<li><a href="#Step-1:-Create-a-New-Deployment-in-SearchStax">Create a new deployment in Managed Search</a>.</li>



<li><a href="#Step-2:-Create-a-Solr-Collection">Create a Solr Collection</a>.</li>



<li><a href="#Step-3:-Install-Drupal">Install Drupal</a>.</li>



<li><a href="#Step-4:-Install-Search-API-/-Search-API-Solr-Module">Install the Search API and Search API Solr modules</a>.</li>



<li><a href="#Step-5:-Configure-the-Search-API-Module">Configure the Search API module Server</a>.</li>



<li><a href="#Step-6:-Configure-the-Search-API-module-Index">Configure the Search API module Index</a>.</li>



<li><a href="#Step-7:-Index-Your-Site">Optional – Index your site</a>.</li>



<li><a href="#Step-8:-Optional-–-Secure-Your-Site">Optional – Secure your site</a></li>
</ol>



<h2 class="wp-block-heading" id="Step-1:-Create-a-New-Deployment-in-SearchStax">Step 1: Create a New Deployment in Managed Search</h2>



<p>Assuming you have already created a SearchStax account and do not already have a deployment set up, click on the Dedicated tab and then click on the Create New Deployment button at the top. Enter a deployment name, and select the most appropriate region, plan, and Solr version for your needs. In this example we will be using Solr 8.11.2.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="664" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1024x664.png" alt="" class="wp-image-16848" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1024x664.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-300x194.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-768x498.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1536x995.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2048x1327.png 2048w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1568x1016.png 1568w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Once you create your deployment, you will see it in the Deployments dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="289" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1024x289.png" alt="" class="wp-image-16849" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1024x289.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-300x85.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-768x217.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1536x434.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1568x443.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Clicking on the name of the deployment will give you pertinent information about your deployment’s servers. The Solr HTTP Endpoint will take you to your Solr server dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="500" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-1024x500.png" alt="" class="wp-image-16850" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-1024x500.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-300x146.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-768x375.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-1536x750.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-1568x765.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Click on Auth in the Security tab to create an Authentication username and password. Enable Auth.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="597" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-1024x597.png" alt="" class="wp-image-16851" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-1024x597.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-300x175.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-768x448.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-1536x896.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-1568x915.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Add a user with Admin permissions. Keep your credentials handy for next steps.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="646" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-1024x646.png" alt="" class="wp-image-16853" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-1024x646.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-300x189.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-768x485.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-1536x969.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-1568x989.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4.png 1572w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading" id="Step-2:-Create-a-Solr-Collection">Step 2: Create a Solr Collection</h2>



<p>Create a new Solr collection using the commands below. For now, use the <strong>_default</strong> config for the <strong>collection.configName</strong> parameter. Later in the guide, we will replace the config with one Drupal recommends.</p>



<p>The username and password is the one you defined in Step 1 when adding an Admin user.</p>



<h3 class="wp-block-heading" id="Create-New-Collection:">Create New Collection:</h3>



<h3 class="wp-block-heading" id="Linux:">Linux:</h3>



<figure class="wp-block-table"><table><tbody><tr><td><code>&gt; curl '&lt;Solr HTTP Endpoint&gt;admin/collections?action=CREATE&amp;name=&lt;collectionName&gt;&amp;collection.configName=&lt;configName&gt;&amp;numShards=1' --user username:password</code></td></tr></tbody></table></figure>



<h3 class="wp-block-heading" id="Windows:">Windows:</h3>



<figure class="wp-block-table"><table><tbody><tr><td><code>$ curl.exe "&lt;Solr HTTP Endpoint&gt;admin/collections?action=CREATE&amp;name=&lt;collectionName&gt;&amp;collection.configName=&lt;configName&gt;&amp;numShards=1" -k -u username:password</code></td></tr></tbody></table></figure>



<h2 class="wp-block-heading" id="Step-3:-Install-Drupal">Step 3: Install Drupal</h2>



<p>We will assume you have Drupal 10 installed. If not please refer to the official <a href="https://www.drupal.org/">Drupal 10 installation page</a>.</p>



<h2 class="wp-block-heading" id="Step-4:-Install-Search-API-/-Search-API-Solr-Module">Step 4: Install Search API / Search API Solr Module</h2>



<p>Install the Drupal <a href="https://www.drupal.org/project/search_api/">Search API Module</a>. </p>



<p>Once the Search API is installed, you can add the <a href="https://www.drupal.org/project/search_api_solr/">Search API Solr Module</a>. </p>



<p>Before continuing, you may need to install the <a href="https://www.drupal.org/docs/develop/using-composer/using-composer-to-install-drupal-and-manage-dependencies">Composer Dependencies</a>.</p>



<p>Finally, you will need to enable the installed modules. Enable the following items: <strong>Search API</strong> and <strong>Search API Solr</strong>, and <strong>Search API Solr Admin</strong>.</p>



<h2 class="wp-block-heading" id="Step-5:-Configure-the-Search-API-Module">Step 5: Configure the Search API Module</h2>



<p>Now that the modules have been enabled, click on the Configuration tab. Look for section SEARCH AND METADATA and click on Search API to configure it.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="308" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-1024x308.png" alt="" class="wp-image-16854" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-1024x308.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-300x90.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-768x231.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-1536x462.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-1568x471.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Once there, click Add Server.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="615" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-5-1024x615.png" alt="" class="wp-image-16855" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-5-1024x615.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-5-300x180.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-5-768x461.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-5.png 1488w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Give your server a name. Make sure the Backend is set to Solr. Check that HTTP protocol is set to https. The Solr host is the deployment’s Solr HTTP Endpoint without the /solr/ element. For incoming connections from Drupal, the Solr port is always 443. The Solr core is the name of the collection defined in Step 2.</p>



<p>Note that the Solr path was /solr in version 8.x-2.7 of the Search API Solr Module, but it changed to / (no “solr”) in version 8.x-3.1. See <a href="https://www.drupal.org/docs/8/modules/search-api-solr/search-api-solr-case-studies/upgrade-search-api-solr-from-2x-to-31-on/">Upgrade Search API Solr from 2.x to 3.1</a> for further information.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="874" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-1024x874.png" alt="" class="wp-image-16856" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-1024x874.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-300x256.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-768x655.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-1536x1311.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-1568x1338.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Add the Solr node, Solr port, and Default Solr Collection. The Solr node can be found in the Endpoints section of your deployment under Solr HTTP Endpoint. The port is 443. The Default Solr Collection is the Collection you created in step 2.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="870" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-1024x870.png" alt="" class="wp-image-16857" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-1024x870.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-300x255.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-768x652.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-1536x1304.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-1568x1332.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Ensure you’ve added the correct Basic Authentication username and password defined in Step 1.<img decoding="async" data-testid="media-image" draggable="false" style="position: absolute; left: 50%; top: 50%; object-fit: contain; image-orientation: none; transform: translate(-50%, -50%); width: 100%;" src="blob:https://searchstax.atlassian.net/fce1f25e-354b-4a88-9326-b162bf7baa75#media-blob-url=true&amp;id=aa862feb-c5fc-46eb-85cd-0a85df5dd844&amp;collection=contentId-3020816385&amp;contextId=3020816385&amp;height=399&amp;width=853&amp;alt=" alt=""></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="479" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4-1024x479.png" alt="" class="wp-image-16858" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4-1024x479.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4-300x140.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4-768x359.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4.png 1536w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Click save at the bottom of the page.</p>



<p>If your configuration settings are valid, you will see a message saying that the information was saved successfully. Under Server Connection, it should read “The Solr server could be reached”. If not, you need to redo adding a Server.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="531" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-1024x531.png" alt="" class="wp-image-16859" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-1024x531.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-300x156.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-768x398.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-1536x796.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-1568x813.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Next we will replace the _default Solr schema causing the error message of incompatible Solr Schema. Click on “upload config.zip”.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="362" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-1024x362.png" alt="" class="wp-image-16861" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-1024x362.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-300x106.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-768x271.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-1536x543.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-1568x554.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5.png 1851w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Check Upload Button and Click Upload.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="367" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-8-1024x367.png" alt="" class="wp-image-16862" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-8-1024x367.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-8-300x108.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-8-768x275.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-8.png 1400w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>You will get a success message.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="385" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-1024x385.png" alt="" class="wp-image-16863" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-1024x385.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-300x113.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-768x289.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-1536x577.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-1568x589.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading" id="Step-6:-Configure-the-Search-API-module-Index">Step 6: Configure the Search API Module Index</h2>



<p>Next you will need to define an index. In the Search API configuration screen, click on Add Index.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="231" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-1024x231.png" alt="" class="wp-image-16864" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-1024x231.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-300x68.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-768x173.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-1536x346.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-1568x353.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Give your index a name, and select the data sources you wish to index. For this example, select Content.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="895" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-1024x895.png" alt="" class="wp-image-16865" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-1024x895.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-300x262.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-768x671.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-1536x1343.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-1568x1371.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>At the bottom of the page make sure that you select the Server created earlier. Click Save and add fields.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="902" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-10-1024x902.png" alt="" class="wp-image-16866" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-10-1024x902.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-10-300x264.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-10-768x676.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-10.png 1358w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Add the fields you would like to Index. Take note of field types.</p>



<h2 class="wp-block-heading" id="Step-7:-Index-Your-Site">Step 7: Optional &#8211; Index Your Site</h2>



<p>A cron job will periodically index your site automatically, but if you want to see your results immediately go to the Search API configuration screen and click on the index created earlier. At the bottom, click on the Index now button.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="882" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-1024x882.png" alt="" class="wp-image-16868" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-1024x882.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-300x258.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-768x661.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-1536x1323.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-1568x1350.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>After you begin, you will see a progress bar. Once it reaches 100%, you will get a success message.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="387" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-1024x387.png" alt="" class="wp-image-16869" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-1024x387.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-300x113.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-768x290.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-1536x580.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-1568x592.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>After your site has been indexed, you can view and query the data in Solr.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="610" src="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-1024x610.png" alt="" class="wp-image-16870" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-1024x610.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-300x179.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-768x457.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-1536x915.png 1536w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-1568x934.png 1568w, https://demo.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading" id="Step-8:-Optional-–-Secure-Your-Site">Step 8: Optional – Secure Your Site</h2>



<p>SearchStax and Solr provide some optional security features that can help you lock down your Solr deployment. Please consider some or all of the following security options.</p>



<h3 class="wp-block-heading" id="Connecting-to-the-SearchStax-Cluster">Connecting to the Managed Search Cluster</h3>



<p>SearchStax recommends that you situate your application infrastructure in the same local network as your hosting provider (for example, the same AWS or Azure region). Internal network security for these hosting providers is extremely high and eliminates any chance of a hacker potentially sniffing your network traffic.</p>



<p>If your application is hosted elsewhere, try to host it as close to your search infrastructure as possible. This can be done by choosing the Cloud Provider Region which is closest to your application. This improves both security and performance.</p>



<p>Note that all connections to the SearchStax Dashboard use HTTPS, which encrypts your traffic in transit.</p>



<h3 class="wp-block-heading" id="IP-Filtering">IP Filtering</h3>



<p>SearchStax can limit access to a deployment to specific IP addresses. You can configure access<br>for Zookeeper and Solr servers separately. Instructions will be found at <a href="/docs/searchstax-cloud-deployment-security/#filtering/">SearchStax IP Filtering</a>.</p>



<h3 class="wp-block-heading" id="Tenant-Users">Tenant Users</h3>



<p>Each SearchStax account is restricted to the owner (and admin) of that account plus any SearchStax “tenant users” who have been granted access to that account by the owner. The additional users may be enrolled as normal SearchStax operators or as admins at the owner’s discretion. See <a href="/docs/searchstax-cloud-user-roles/">Managing Users</a>.</p>



<h3 class="wp-block-heading" id="Solr-Authentication-and-Authorization">Solr Authentication and Authorization</h3>



<p>Solr offers an Authentication and Authorization feature that lets you set up username/password protection for the Solr server dashboard. SearchStax makes it very easy to enable this feature.</p>



<p>Note that Solr user accounts are independent of SearchStax user accounts.</p>



<p>If you set a username/password for Solr, you’ll need to edit the Search API server (under “Basic HTTP authentication”) and input the same information there.</p>



<p>The only warning is that enabling/disabling Solr authentication forces the Solr servers to restart. See <a href="/docs/searchstax-cloud-deployment-security/#solrauth/">Solr Authentication and Authorization</a>.</p>



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



<p>Do not hesitate to contact the SearchStax Support Desk.</p>
<p>The post <a href="https://demo.searchstax.com/docs/drupal-10-2/">Managed Search for Drupal 10</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
