<?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>Haystack Archives - SearchStax Docs</title>
	<atom:link href="https://demo.searchstax.com/docs/category/managed-solr/mloud-manager/integrate-solr-with/haystack/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Documentation</description>
	<lastBuildDate>Tue, 21 May 2024 04:40:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>

<image>
	<url>https://demo.searchstax.com/docs/wp-content/uploads/2023/10/cropped-favicon-32x32.png</url>
	<title>Haystack Archives - SearchStax Docs</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Managed Search for Haystack</title>
		<link>https://demo.searchstax.com/docs/searchstax-cloud-haystack/</link>
					<comments>https://demo.searchstax.com/docs/searchstax-cloud-haystack/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 15 Feb 2021 11:30:05 +0000</pubDate>
				<category><![CDATA[Haystack]]></category>
		<guid isPermaLink="false">http://mt01.ph5s.com/?p=6830</guid>

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



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



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



<p>The SearchStax Managed Search service can be used to install Apache Solr on a Haystack website.</p>



<h2 class="wp-block-heading" id="django-and-haystack">Django and Haystack</h2>



<p><a href="https://en.wikipedia.org/wiki/Django_(web_framework)" target="_blank" rel="noreferrer noopener">Django</a> is an open-source Python Web framework that encourages rapid website development and easy integration with an underlying database.</p>



<p>If your website was built using Django, you should investigate the <a href="http://haystacksearch.org/" target="_blank" rel="noreferrer noopener">Haystack</a> extension. It integrates with Django to provide views, templates, and APIs for a website search page connected to an underlying search engine such as Apache Solr. There are page templates for query-only and faceted search.</p>



<h2 class="wp-block-heading" id="haystack-and-solr">Haystack and Solr</h2>



<p>Haystack is compatible with any newly-created SearchStax deployment.</p>



<p>The <a href="https://django-haystack.readthedocs.io/en/master/installing_search_engines.html" target="_blank" rel="noreferrer noopener">Haystack documentation</a> indicates that Haystack 2.6.0 (the latest stable version) is compatible with Solr 6.x versions. (It is also possible to use Haystack with Solr 4.x versions, but the setup is much more complicated.)</p>



<h2 class="wp-block-heading" id="connecting-to-solr">Connecting to Solr</h2>



<p>See <a href="https://django-haystack.readthedocs.io/en/master/tutorial.html#configuration" target="_blank" rel="noreferrer noopener">Getting Started with Haystack &#8211; Configuration</a> for the details of configuring Haystack. At one point you must edit <strong>python.py</strong> to add the URL of the Solr instance.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: python; title: ; notranslate">
HAYSTACK_CONNECTIONS = {
    &#039;default&#039;: {
        &#039;ENGINE&#039;: &#039;haystack.backends.solr_backend.SolrEngine&#039;,
        &#039;URL&#039;: &#039;https://ss123456-us-west-1-aws.searchstax.com/solr/collection-name/&#039;
    },
}
</pre></div>


<p>Use the <strong>Solr HTTP Endpoint</strong> URL from your SearchStax dashboard.</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="438" height="179" src="https://demo.searchstax.com/docs/wp-content/uploads/2022/01/SolrEndpointNode-1.jpg" alt="" class="wp-image-10505" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2022/01/SolrEndpointNode-1.jpg 438w, https://demo.searchstax.com/docs/wp-content/uploads/2022/01/SolrEndpointNode-1-300x123.jpg 300w" sizes="(max-width: 438px) 100vw, 438px" /></figure>



<p>Be sure to append the <em>collection name</em> to the endpoint URL.</p>



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



<p>Do not hesitate to contact the <a href="mailto:support@demo.searchstax.com?subject=How%20to%20Install%20Apache%20Solr%20on%20a%20Haystack%20Website%20using%20SearchStax%20Cloud" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstax-cloud-haystack/">Managed Search for Haystack</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://demo.searchstax.com/docs/searchstax-cloud-haystack/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
