<?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://www.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>Mon, 09 Feb 2026 18:05:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://www.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://www.searchstax.com/docs/searchstax-cloud-drupal-7/</link>
					<comments>https://www.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://www.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://www.searchstax.com/docs/searchstax-cloud-drupal-7/">Managed Search for Drupal 7</a> appeared first on <a href="https://www.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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 are also pages for <a href="/docs/drupal-8-apache-solr/">Drupal 8</a>, <a href="/docs/drupal-9/">Drupal 9</a>, and <a href="/docs/drupal-10/">Drupal 10</a></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 class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2022/10/image-38.png" alt="" class="wp-image-13459" srcset="https://www.searchstax.com/docs/wp-content/uploads/2022/10/image-38.png 951w, https://www.searchstax.com/docs/wp-content/uploads/2022/10/image-38-300x267.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2022/10/image-38-768x682.png 768w" sizes="(max-width: 951px) 100vw, 951px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2022/10/image-39-1024x134.png" alt="" class="wp-image-13461" srcset="https://www.searchstax.com/docs/wp-content/uploads/2022/10/image-39-1024x134.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2022/10/image-39-300x39.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2022/10/image-39-768x100.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2022/10/image-39.png 1104w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2024/06/image-13-1024x533.png" alt="" class="wp-image-18909" srcset="https://www.searchstax.com/docs/wp-content/uploads/2024/06/image-13-1024x533.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2024/06/image-13-300x156.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2024/06/image-13-768x400.png 768w, https://www.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 class="wp-block-paragraph"><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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2021/02/image12.png" alt="SearchStax Solr Drupal 7 Configurations                             "/></figure>



<p class="wp-block-paragraph">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-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>> ./zkcli.sh -zkhost &lt;zookeeper URL> -cmd upconfig -confdir &lt;Solr configuration> -confname &lt;configuration name></textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">&gt;</span><span style="color: #24292E"> ./zkcli.sh -zkhost </span><span style="color: #D73A49">&lt;</span><span style="color: #24292E">zookeeper URL</span><span style="color: #D73A49">&gt;</span><span style="color: #24292E"> -cmd upconfig -confdir </span><span style="color: #D73A49">&lt;</span><span style="color: #24292E">Solr configuration</span><span style="color: #D73A49">&gt;</span><span style="color: #24292E"> -confname </span><span style="color: #D73A49">&lt;</span><span style="color: #24292E">configuration name</span><span style="color: #D73A49">&gt;</span></span></code></pre></div>



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



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ zkcli.bat -zkhost &lt;zookeeper URL> -cmd upconfig -confdir &lt;Solr configuration> -confname &lt;configuration name></textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ </span><span style="color: #005CC5">zkcli.bat</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">zkhost </span><span style="color: #D73A49">&lt;</span><span style="color: #24292E">zookeeper URL</span><span style="color: #D73A49">&gt;</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">cmd upconfig </span><span style="color: #D73A49">-</span><span style="color: #24292E">confdir </span><span style="color: #D73A49">&lt;</span><span style="color: #24292E">Solr configuration</span><span style="color: #D73A49">&gt;</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">confname </span><span style="color: #D73A49">&lt;</span><span style="color: #24292E">configuration name</span><span style="color: #D73A49">&gt;</span></span></code></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-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>> curl &#8216;&lt;Solr HTTP Endpoint>admin/collections?action=CREATE&amp;name=&lt;collectionName>&amp;collection.configName=&lt;configName>&amp;numShards=1&#8217;</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">&gt;</span><span style="color: #24292E"> curl </span><span style="color: #032F62">&#39;&lt;Solr HTTP Endpoint&gt;admin/collections?action=CREATE&amp;name=&lt;collectionName&gt;&amp;collection.configName=&lt;configName&gt;&amp;numShards=1&#39;</span></span></code></pre></div>



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



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ curl.exe &#8220;&lt;Solr HTTP Endpoint>admin/collections?action=CREATE&amp;name=&lt;collectionName>&amp;collection.configName=&lt;configName>&amp;numShards=1&#8221; -k</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ </span><span style="color: #005CC5">curl.exe</span><span style="color: #24292E"> </span><span style="color: #032F62">&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;</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">k</span></span></code></pre></div>



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



<p class="wp-block-paragraph">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 class="wp-block-paragraph">Install the Drupal <a href="https://www.drupal.org/project/search_api" target="_blank" rel="noreferrer noopener">Search API Module</a>.</p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2021/02/Drupal7Guide1.png" alt="SearchStax Solr Drupal 7 Search and Metadata"/></figure>



<p class="wp-block-paragraph">Once there, click <strong>Add Server</strong>.</p>



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



<p class="wp-block-paragraph">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://www.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://www.searchstax.com/docs/wp-content/uploads/2021/02/Drupal7Guide4-1.png" alt="SearchStax Solr Drupal 7 Solr Service"/></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2021/02/Drupal7Guide5.png" alt="SearchStax Solr Drupal 7 New Server"/></figure>



<p class="wp-block-paragraph">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://www.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 class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2021/02/image26.png" alt="SearchStax Solr Drupal 7 Devel"/></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2021/02/image06.png" alt="SearchStax Solr Drupal 7 Devel Settings"/></figure>



<p class="wp-block-paragraph">Click on <strong>Generate Content</strong>.</p>



<p class="wp-block-paragraph">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://www.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 class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2021/02/image04.png" alt="SearchStax Solr Drupal 7 Index Data"/></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2021/02/image01.png" alt="SearchStax Solr Drupal 7 Index Data"/></figure>



<p class="wp-block-paragraph">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://www.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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">Note that Solr user accounts are independent of SearchStax user accounts.</p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">Do not hesitate to contact the <a href="mailto:support@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://www.searchstax.com/docs/searchstax-cloud-drupal-7/">Managed Search for Drupal 7</a> appeared first on <a href="https://www.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.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://www.searchstax.com/docs/searchstax-cloud-drupal-8/</link>
					<comments>https://www.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://www.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://www.searchstax.com/docs/searchstax-cloud-drupal-8/">Managed Search for Drupal 8</a> appeared first on <a href="https://www.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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2022/10/image-42.png" alt="" class="wp-image-13465" srcset="https://www.searchstax.com/docs/wp-content/uploads/2022/10/image-42.png 951w, https://www.searchstax.com/docs/wp-content/uploads/2022/10/image-42-300x267.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2022/10/image-42-768x682.png 768w" sizes="auto, (max-width: 951px) 100vw, 951px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2022/10/image-43-1024x134.png" alt="" class="wp-image-13466" srcset="https://www.searchstax.com/docs/wp-content/uploads/2022/10/image-43-1024x134.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2022/10/image-43-300x39.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2022/10/image-43-768x100.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2022/10/image-43.png 1104w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2024/06/image-14-1024x533.png" alt="" class="wp-image-18911" srcset="https://www.searchstax.com/docs/wp-content/uploads/2024/06/image-14-1024x533.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2024/06/image-14-300x156.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2024/06/image-14-768x400.png 768w, https://www.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 class="wp-block-paragraph"><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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2021/02/image12-a.png" alt="SearchStax Solr Drupal 8 Configs"/></figure>



<p class="wp-block-paragraph">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-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>> ./zkcli.sh -zkhost &lt;zookeeper URL> -cmd upconfig -confdir &lt;Solr configuration> -confname &lt;configuration name></textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">&gt;</span><span style="color: #24292E"> ./zkcli.sh -zkhost </span><span style="color: #D73A49">&lt;</span><span style="color: #24292E">zookeeper URL</span><span style="color: #D73A49">&gt;</span><span style="color: #24292E"> -cmd upconfig -confdir </span><span style="color: #D73A49">&lt;</span><span style="color: #24292E">Solr configuration</span><span style="color: #D73A49">&gt;</span><span style="color: #24292E"> -confname </span><span style="color: #D73A49">&lt;</span><span style="color: #24292E">configuration name</span><span style="color: #D73A49">&gt;</span></span></code></pre></div>



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



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ zkcli.bat -zkhost &lt;zookeeper URL> -cmd upconfig -confdir &lt;Solr configuration> -confname &lt;configuration name></textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ </span><span style="color: #005CC5">zkcli.bat</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">zkhost </span><span style="color: #D73A49">&lt;</span><span style="color: #24292E">zookeeper URL</span><span style="color: #D73A49">&gt;</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">cmd upconfig </span><span style="color: #D73A49">-</span><span style="color: #24292E">confdir </span><span style="color: #D73A49">&lt;</span><span style="color: #24292E">Solr configuration</span><span style="color: #D73A49">&gt;</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">confname </span><span style="color: #D73A49">&lt;</span><span style="color: #24292E">configuration name</span><span style="color: #D73A49">&gt;</span></span></code></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-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>> curl &#8216;&lt;Solr HTTP Endpoint>admin/collections?action=CREATE&amp;name=&lt;collectionName>&amp;collection.configName=&lt;configName>&amp;numShards=1&#8217;</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">&gt;</span><span style="color: #24292E"> curl </span><span style="color: #032F62">&#39;&lt;Solr HTTP Endpoint&gt;admin/collections?action=CREATE&amp;name=&lt;collectionName&gt;&amp;collection.configName=&lt;configName&gt;&amp;numShards=1&#39;</span></span></code></pre></div>



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



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ curl.exe &#8220;&lt;Solr HTTP Endpoint>admin/collections?action=CREATE&amp;name=&lt;collectionName>&amp;collection.configName=&lt;configName>&amp;numShards=1&#8221; -k</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ </span><span style="color: #005CC5">curl.exe</span><span style="color: #24292E"> </span><span style="color: #032F62">&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;</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">k</span></span></code></pre></div>



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



<p class="wp-block-paragraph">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 class="wp-block-paragraph">Install the Drupal <a href="https://www.drupal.org/project/search_api/" target="_blank" rel="noreferrer noopener">Search API Module</a>.</p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2021/02/image27.png" alt="SearchStax Solr Drupal 8 Metadata"/></figure>



<p class="wp-block-paragraph">Once there, click <strong>Add Server</strong>.</p>



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



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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://www.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://www.searchstax.com/docs/wp-content/uploads/2021/02/image17-2.png" alt="SearchStax Solr Drupal 8 Add server"/></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2021/02/image03-1.png" alt="SearchStax Solr Drupal 8 Success"/></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2021/02/image0523.png" alt="SearchStax Solr Drupal Add Index"/></figure>



<p class="wp-block-paragraph">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://www.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://www.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 class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2021/02/Drupal8Development.png" alt="SearchStax Solr Drupal 8 Devel"/></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2021/02/Drupal8DevelSettings.png" alt="SearchStax Solr Drupal 8 Devel Settings"/></figure>



<p class="wp-block-paragraph">Click on <strong>Generate Content</strong>.</p>



<p class="wp-block-paragraph">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://www.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 class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2021/02/Drupal8IndexStart.png" alt="SearchStax Solr Drupal 8 Index"/></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2021/02/Drupal8IndexFinish.png" alt="SearchStax Solr Drupal 8 Success"/></figure>



<p class="wp-block-paragraph">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://www.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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">Note that Solr user accounts are independent of SearchStax user accounts.</p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">Do not hesitate to contact the <a href="mailto:support@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://www.searchstax.com/docs/searchstax-cloud-drupal-8/">Managed Search for Drupal 8</a> appeared first on <a href="https://www.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.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://www.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://www.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://www.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://www.searchstax.com/docs/drupal-9/">Managed Search for Drupal 9</a> appeared first on <a href="https://www.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 class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"></p>



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



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



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 start="1" class="wp-block-list">
<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 class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1024x664.png" alt="" class="wp-image-16848" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1024x664.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-300x194.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-768x498.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1536x995.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2048x1327.png 2048w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1568x1016.png 1568w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1024x289.png" alt="" class="wp-image-16849" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1024x289.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-300x85.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-768x217.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1536x434.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1568x443.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-1024x500.png" alt="" class="wp-image-16850" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-1024x500.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-300x146.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-768x375.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-1536x750.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-1568x765.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-1024x597.png" alt="" class="wp-image-16851" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-1024x597.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-300x175.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-768x448.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-1536x896.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-1568x915.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-1024x646.png" alt="" class="wp-image-16853" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-1024x646.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-300x189.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-768x485.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-1536x969.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-1568x989.png 1568w, https://www.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 class="wp-block-paragraph">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 class="wp-block-paragraph">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>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>> curl &#8216;&lt;Solr HTTP Endpoint>admin/collections?action=CREATE&amp;name=&lt;collectionName>&amp;collection.configName=&lt;configName>&amp;numShards=1&#8217; &#8211;user username:password</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">&gt;</span><span style="color: #24292E"> curl </span><span style="color: #032F62">&#39;&lt;Solr HTTP Endpoint&gt;admin/collections?action=CREATE&amp;name=&lt;collectionName&gt;&amp;collection.configName=&lt;configName&gt;&amp;numShards=1&#39;</span><span style="color: #24292E"> --user username:password</span></span></code></pre></div>



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



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ curl.exe &#8220;&lt;Solr HTTP Endpoint>admin/collections?action=CREATE&amp;name=&lt;collectionName>&amp;collection.configName=&lt;configName>&amp;numShards=1&#8221; -k -u username:password</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ </span><span style="color: #005CC5">curl.exe</span><span style="color: #24292E"> </span><span style="color: #032F62">&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;</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">k </span><span style="color: #D73A49">-</span><span style="color: #24292E">u username:password</span></span></code></pre></div>



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



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-1024x308.png" alt="" class="wp-image-16854" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-1024x308.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-300x90.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-768x231.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-1536x462.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-1568x471.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Once there, click Add Server.</p>



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



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-1024x874.png" alt="" class="wp-image-16856" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-1024x874.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-300x256.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-768x655.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-1536x1311.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-1568x1338.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-1024x870.png" alt="" class="wp-image-16857" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-1024x870.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-300x255.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-768x652.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-1536x1304.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-1568x1332.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4-1024x479.png" alt="" class="wp-image-16858" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4-1024x479.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4-300x140.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4-768x359.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4.png 1536w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Click save at the bottom of the page.</p>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-1024x531.png" alt="" class="wp-image-16859" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-1024x531.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-300x156.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-768x398.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-1536x796.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-1568x813.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-1024x362.png" alt="" class="wp-image-16861" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-1024x362.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-300x106.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-768x271.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-1536x543.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-1568x554.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5.png 1851w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-8-1024x367.png" alt="" class="wp-image-16862" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-8-1024x367.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-8-300x108.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-8-768x275.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-8.png 1400w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-1024x385.png" alt="" class="wp-image-16863" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-1024x385.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-300x113.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-768x289.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-1536x577.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-1568x589.png 1568w, https://www.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 class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-1024x231.png" alt="" class="wp-image-16864" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-1024x231.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-300x68.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-768x173.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-1536x346.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-1568x353.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-1024x895.png" alt="" class="wp-image-16865" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-1024x895.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-300x262.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-768x671.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-1536x1343.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-1568x1371.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-10-1024x902.png" alt="" class="wp-image-16866" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-10-1024x902.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-10-300x264.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-10-768x676.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-10.png 1358w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-1024x882.png" alt="" class="wp-image-16868" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-1024x882.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-300x258.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-768x661.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-1536x1323.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-1568x1350.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-1024x387.png" alt="" class="wp-image-16869" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-1024x387.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-300x113.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-768x290.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-1536x580.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-1568x592.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-1024x610.png" alt="" class="wp-image-16870" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-1024x610.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-300x179.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-768x457.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-1536x915.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-1568x934.png 1568w, https://www.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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">Note that Solr user accounts are independent of SearchStax user accounts.</p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">Do not hesitate to contact the SearchStax Support Desk.</p>
<p>The post <a href="https://www.searchstax.com/docs/drupal-9/">Managed Search for Drupal 9</a> appeared first on <a href="https://www.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Managed Search for Drupal 10</title>
		<link>https://www.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://www.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://www.searchstax.com/docs/drupal-10-2/">Managed Search for Drupal 10</a> appeared first on <a href="https://www.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 class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"></p>



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



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



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 start="1" class="wp-block-list">
<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 class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1024x664.png" alt="" class="wp-image-16848" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1024x664.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-300x194.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-768x498.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1536x995.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2048x1327.png 2048w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1568x1016.png 1568w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1024x289.png" alt="" class="wp-image-16849" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1024x289.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-300x85.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-768x217.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1536x434.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1568x443.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-1024x500.png" alt="" class="wp-image-16850" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-1024x500.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-300x146.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-768x375.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-1536x750.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2-1568x765.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-2.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-1024x597.png" alt="" class="wp-image-16851" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-1024x597.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-300x175.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-768x448.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-1536x896.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1-1568x915.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-1.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-1024x646.png" alt="" class="wp-image-16853" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-1024x646.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-300x189.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-768x485.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-1536x969.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-4-1568x989.png 1568w, https://www.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 class="wp-block-paragraph">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 class="wp-block-paragraph">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>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>> curl &#8216;&lt;Solr HTTP Endpoint>admin/collections?action=CREATE&amp;name=&lt;collectionName>&amp;collection.configName=&lt;configName>&amp;numShards=1&#8217; &#8211;user username:password</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">&gt;</span><span style="color: #24292E"> curl </span><span style="color: #032F62">&#39;&lt;Solr HTTP Endpoint&gt;admin/collections?action=CREATE&amp;name=&lt;collectionName&gt;&amp;collection.configName=&lt;configName&gt;&amp;numShards=1&#39;</span><span style="color: #24292E"> --user username:password</span></span></code></pre></div>



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



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ curl.exe &#8220;&lt;Solr HTTP Endpoint>admin/collections?action=CREATE&amp;name=&lt;collectionName>&amp;collection.configName=&lt;configName>&amp;numShards=1&#8221; -k -u username:password</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ </span><span style="color: #005CC5">curl.exe</span><span style="color: #24292E"> </span><span style="color: #032F62">&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;</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">k </span><span style="color: #D73A49">-</span><span style="color: #24292E">u username:password</span></span></code></pre></div>



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



<p class="wp-block-paragraph">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 class="wp-block-paragraph">Install the Drupal <a href="https://www.drupal.org/project/search_api/">Search API Module</a>. </p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-1024x308.png" alt="" class="wp-image-16854" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-1024x308.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-300x90.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-768x231.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-1536x462.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2-1568x471.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-2.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Once there, click Add Server.</p>



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



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-1024x874.png" alt="" class="wp-image-16856" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-1024x874.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-300x256.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-768x655.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-1536x1311.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3-1568x1338.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-3.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-1024x870.png" alt="" class="wp-image-16857" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-1024x870.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-300x255.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-768x652.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-1536x1304.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6-1568x1332.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-6.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4-1024x479.png" alt="" class="wp-image-16858" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4-1024x479.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4-300x140.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4-768x359.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4.png 1536w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Click save at the bottom of the page.</p>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-1024x531.png" alt="" class="wp-image-16859" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-1024x531.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-300x156.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-768x398.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-1536x796.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7-1568x813.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-7.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-1024x362.png" alt="" class="wp-image-16861" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-1024x362.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-300x106.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-768x271.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-1536x543.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5-1568x554.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-5.png 1851w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-8-1024x367.png" alt="" class="wp-image-16862" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-8-1024x367.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-8-300x108.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-8-768x275.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-8.png 1400w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-1024x385.png" alt="" class="wp-image-16863" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-1024x385.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-300x113.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-768x289.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-1536x577.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-6-1568x589.png 1568w, https://www.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 class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-1024x231.png" alt="" class="wp-image-16864" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-1024x231.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-300x68.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-768x173.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-1536x346.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9-1568x353.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-9.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-1024x895.png" alt="" class="wp-image-16865" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-1024x895.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-300x262.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-768x671.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-1536x1343.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7-1568x1371.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-7.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-10-1024x902.png" alt="" class="wp-image-16866" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-10-1024x902.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-10-300x264.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-10-768x676.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-10.png 1358w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-1024x882.png" alt="" class="wp-image-16868" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-1024x882.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-300x258.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-768x661.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-1536x1323.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8-1568x1350.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-8.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-1024x387.png" alt="" class="wp-image-16869" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-1024x387.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-300x113.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-768x290.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-1536x580.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-1568x592.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-1024x610.png" alt="" class="wp-image-16870" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-1024x610.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-300x179.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-768x457.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-1536x915.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-9-1568x934.png 1568w, https://www.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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">Note that Solr user accounts are independent of SearchStax user accounts.</p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">Do not hesitate to contact the SearchStax Support Desk.</p>
<p>The post <a href="https://www.searchstax.com/docs/drupal-10-2/">Managed Search for Drupal 10</a> appeared first on <a href="https://www.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Managed Search for Drupal 11</title>
		<link>https://www.searchstax.com/docs/managed-search-for-drupal-11/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Mon, 09 Feb 2026 18:02:49 +0000</pubDate>
				<category><![CDATA[Drupal]]></category>
		<guid isPermaLink="false">https://www.searchstax.com/docs/?p=23689</guid>

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



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"></p>



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



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



<p class="wp-block-paragraph">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>11 website using Drupal’s Search API and its Search API Solr modules.</p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">This example uses Drupal 11 and Solr 9.10.1. Learn more about the <a href="https://www.drupal.org/about/11" type="link" id="https://www.drupal.org/about/11">Drupal 11 digital experience platform (DXP)</a>.</p>



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



<ol start="1" class="wp-block-list">
<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 class="wp-block-paragraph">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 9.10.1.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="781" height="592" src="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image.png" alt="" class="wp-image-23691" srcset="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image.png 781w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-300x227.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-768x582.png 768w" sizes="auto, (max-width: 781px) 100vw, 781px" /></figure>



<p class="wp-block-paragraph">Once you create your deployment, you will see it in the Deployments dashboard.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="944" height="355" src="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-1.png" alt="" class="wp-image-23692" srcset="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-1.png 944w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-1-300x113.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-1-768x289.png 768w" sizes="auto, (max-width: 944px) 100vw, 944px" /></figure>



<p class="wp-block-paragraph">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-full"><img loading="lazy" decoding="async" width="934" height="508" src="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-2.png" alt="" class="wp-image-23693" srcset="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-2.png 934w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-2-300x163.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-2-768x418.png 768w" sizes="auto, (max-width: 934px) 100vw, 934px" /></figure>



<p class="wp-block-paragraph">Click on <strong>Auth</strong> in the <strong>Security</strong> tab to create an Authentication username and password. Enable Auth.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="927" height="484" src="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-3.png" alt="" class="wp-image-23694" srcset="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-3.png 927w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-3-300x157.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-3-768x401.png 768w" sizes="auto, (max-width: 927px) 100vw, 927px" /></figure>



<p class="wp-block-paragraph">Add a user with <strong>Admin</strong> permissions. Keep your credentials handy for next steps.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="702" height="415" src="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-4.png" alt="" class="wp-image-23695" srcset="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-4.png 702w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-4-300x177.png 300w" sizes="auto, (max-width: 702px) 100vw, 702px" /></figure>



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



<p class="wp-block-paragraph">Create a new Solr collection using the commands below. Use any appropriate symbol as the collection <strong>name</strong>. 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 class="wp-block-paragraph">The username and password is the one you defined in Step 1 when adding an <strong>Admin</strong> user.</p>



<h3 class="wp-block-heading" id="Linux:">Linux Bash or Windows PowerShell:</h3>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>> curl '&lt;Solr HTTP Endpoint>admin/collections?action=CREATE&amp;name=&lt;collectionName>&amp;collection.configName=&lt;configName>&amp;numShards=1' --user username:password</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">&gt;</span><span style="color: #24292E"> curl </span><span style="color: #032F62">&#39;&lt;Solr HTTP Endpoint&gt;admin/collections?action=CREATE&amp;name=&lt;collectionName&gt;&amp;collection.configName=&lt;configName&gt;&amp;numShards=1&#39;</span><span style="color: #24292E"> --user username:password</span></span></code></pre></div>



<p class="wp-block-paragraph">The CREATE function returns a &#8220;success&#8221; message after creating the new collection.</p>



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



<p class="wp-block-paragraph">We will assume you have Drupal 11 installed. If not please refer to the official <a href="https://www.drupal.org/">Drupal 11 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 class="wp-block-paragraph">Install the Drupal <a href="https://www.drupal.org/project/search_api/">Search API Module</a>. </p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">Before continuing, you might 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 class="wp-block-paragraph">Finally, you will need to <em>enable</em> the installed modules in your Drupal website UI. From your Drupal website, navigate to <strong>Manage &gt; Extend &gt; List</strong>. 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 class="wp-block-paragraph">Now that the modules have been enabled, click on the Drupal website&#8217;s <strong>Manage &gt; 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-full"><img loading="lazy" decoding="async" width="567" height="429" src="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-5.png" alt="" class="wp-image-23700" srcset="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-5.png 567w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-5-300x227.png 300w" sizes="auto, (max-width: 567px) 100vw, 567px" /></figure>



<p class="wp-block-paragraph">Once there, click <strong>Add Server</strong>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="615" src="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-11.png" alt="" class="wp-image-23708" srcset="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-11.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-11-300x180.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-11-768x461.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Give your server a <strong>name</strong>. Make sure the Backend is set to <strong>Solr</strong>.  The Solr Connector is <strong>Solr Cloud with Basic Auth</strong>. </p>



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



<p class="wp-block-paragraph">Selecting <strong>Solr Cloud with Basic Auth</strong> opens new controls on the form. Check that HTTP protocol is set to <strong>https</strong>. The <strong>Solr node</strong> is the deployment’s <strong>Solr HTTP Endpoint</strong> <em>without</em> the https:// prefix and the trailing /solr/ element. The port is <strong>443</strong>. The Solr path is <strong>/</strong>. The <strong>Default Solr Collection</strong> is the Collection you created in step 2.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="815" height="753" src="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-6.png" alt="" class="wp-image-23701" srcset="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-6.png 815w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-6-300x277.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-6-768x710.png 768w" sizes="auto, (max-width: 815px) 100vw, 815px" /></figure>



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4-1024x479.png" alt="" class="wp-image-16858" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4-1024x479.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4-300x140.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4-768x359.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-1-4.png 1536w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Click <strong>Save</strong> at the bottom of the page.</p>



<p class="wp-block-paragraph">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-full"><img loading="lazy" decoding="async" width="657" height="165" src="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-7.png" alt="" class="wp-image-23702" srcset="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-7.png 657w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-7-300x75.png 300w" sizes="auto, (max-width: 657px) 100vw, 657px" /></figure>



<p class="wp-block-paragraph">Under Server Connection, it should read “The Solr server could be reached.&#8221; </p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1017" height="96" src="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-8.png" alt="" class="wp-image-23703" srcset="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-8.png 1017w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-8-300x28.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-8-768x72.png 768w" sizes="auto, (max-width: 1017px) 100vw, 1017px" /></figure>



<p class="wp-block-paragraph">If not, you need to redo &#8220;adding a Server.&#8221;</p>



<p class="wp-block-paragraph">Next we will replace the <strong>_default</strong> Solr schema causing the error message of incompatible Solr Schema. Click on <strong>Upload Configset</strong>.</p>



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



<p class="wp-block-paragraph">Check <strong>Upload (and overwrite) configset</strong>. Click <strong>Upload</strong>.</p>



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



<p class="wp-block-paragraph">You will get a success message.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="740" height="214" src="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-9.png" alt="" class="wp-image-23704" srcset="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-9.png 740w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-9-300x87.png 300w" sizes="auto, (max-width: 740px) 100vw, 740px" /></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 class="wp-block-paragraph">Next you will need to define an index. In the Search API configuration screen, click on <strong>Add Index</strong>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1018" height="576" src="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-10.png" alt="" class="wp-image-23706" srcset="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-10.png 1018w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-10-300x170.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-10-768x435.png 768w" sizes="auto, (max-width: 1018px) 100vw, 1018px" /></figure>



<p class="wp-block-paragraph">Give your index a name, and select the data sources you wish to index. For this example, select <strong>Content</strong>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="527" src="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-12-1024x527.png" alt="" class="wp-image-23710" srcset="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-12-1024x527.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-12-300x154.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-12-768x395.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-12.png 1061w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">At the bottom of the page make sure that you select the Server created earlier. Click <strong>Save and add fields</strong>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="668" src="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-13-1024x668.png" alt="" class="wp-image-23711" srcset="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-13-1024x668.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-13-300x196.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-13-768x501.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-13.png 1175w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Add the fields you would like to Index. Click <strong>Done</strong> when finished.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="417" src="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-14-1024x417.png" alt="" class="wp-image-23713" srcset="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-14-1024x417.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-14-300x122.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-14-768x313.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-14.png 1172w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



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



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



<p class="wp-block-paragraph">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://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-1024x387.png" alt="" class="wp-image-16869" srcset="https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-1024x387.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-300x113.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-768x290.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-1536x580.png 1536w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11-1568x592.png 1568w, https://www.searchstax.com/docs/wp-content/uploads/2023/12/Untitled-11.png 1850w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">After your site has been indexed, you can view and query the data in Solr. In your Managed Search deployment, click the <strong>Solr HTTP Endpoint</strong> to view the Solr dashboard. Solr will ask for your user credentials, from Step 1 above. Then select the index and click <strong>Query</strong>.  Finally, click <strong>Execute Query</strong> at the bottom of the form. </p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="915" src="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-15-1024x915.png" alt="" class="wp-image-23715" srcset="https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-15-1024x915.png 1024w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-15-300x268.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-15-768x686.png 768w, https://www.searchstax.com/docs/wp-content/uploads/2026/02/image-15.png 1231w" 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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">Note that Solr user accounts are independent of SearchStax user accounts.</p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">Do not hesitate to contact the SearchStax Support Desk.</p>
<p>The post <a href="https://www.searchstax.com/docs/managed-search-for-drupal-11/">Managed Search for Drupal 11</a> appeared first on <a href="https://www.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
