<?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>solr Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/solr/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 14 Jul 2020 22:38:59 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>How to install Apache Solr on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/install-apache-solr-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-apache-solr-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 14 Jul 2020 22:38:56 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[solr]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=21626</guid>

					<description><![CDATA[<p>Hi, folks. This post will help you to install Apache Solr on Ubuntu 20.04. This professional tool is the base of many giant companies like Netflix. Apache Solr is a professional search server created in Java and sponsored by the Apache Foundation. It is highly sophisticated and therefore used by large corporations for their vertical [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-solr-ubuntu-20-04/">How to install Apache Solr on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hi, folks. <strong>This post will help you to install Apache Solr on Ubuntu 20.04. </strong>This professional tool is the base of many giant companies like Netflix.</p>



<p><a href="https://lucene.apache.org/solr/" target="_blank" rel="noreferrer noopener">Apache Solr</a> is a professional search server created in Java and sponsored by the Apache Foundation. It is highly sophisticated and therefore used by large corporations for their vertical searches.</p>



<p>On the other hand, the concept of vertical search is quite simple to understand. A vertical search server is limited to a domain, a topic, or a target audience. It is ideal for programs and private search engines.</p>



<p>All this is achieved by Apache Solr with high performance, using very well the system resources and being compatible with PHP, Python, XML, and JSON.</p>



<p>So, let&#8217;s get started.</p>



<h2>Install Apache Solr on Ubuntu 20.04</h2>



<p>Before starting the process, it is advisable to first update the system completely. To do this, open a terminal or connect to your server via SSH.</p>



<p>Then, execute the following commands:</p>



<pre class="wp-block-preformatted">:~$ sudo apt update
:~$ sudo apt upgrade</pre>



<p>At the end, your system will be fully updated and we will be able to continue.</p>



<h3>1.- Install Java on Ubuntu 20.04</h3>



<p>Apache Solr depends on Java to work. Therefore, you must have it installed previously.</p>



<p>So, to install Java on Ubuntu 20.04, you can run the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo apt install openjdk-11-jre
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
at-spi2-core ca-certificates-java fontconfig-config fonts-dejavu-core fonts-dejavu-extra java-common libatk-bridge2.0-0 libatk-wrapper-java libatk-wrapper-java-jni
libatk1.0-0 libatk1.0-data libatspi2.0-0 libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1
libfontconfig1 libfontenc1 libgif7 libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libice6 libjpeg-turbo8 libjpeg8 liblcms2-2 libllvm9 libnspr4
libnss3 libpciaccess0 libpcsclite1 libsensors-config libsensors5 libsm6 libvulkan1 libwayland-client0 libx11-xcb1 libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0
libxcb-present0 libxcb-randr0 libxcb-shape0 libxcb-sync1 libxcomposite1 libxdamage1 libxfixes3 libxft2 libxi6 libxinerama1 libxkbfile1 libxmu6 libxpm4 libxrandr2
libxrender1 libxshmfence1 libxt6 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 mesa-vulkan-drivers openjdk-11-jre-headless x11-common x11-utils
Suggested packages:
default-jre cups-common liblcms2-utils pcscd lm-sensors libnss-mdns fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei | fonts-wqy-zenhei fonts-indic
mesa-utils
The following NEW packages will be installed:
at-spi2-core ca-certificates-java fontconfig-config fonts-dejavu-core fonts-dejavu-extra java-common libatk-bridge2.0-0 libatk-wrapper-java libatk-wrapper-java-jni
libatk1.0-0 libatk1.0-data libatspi2.0-0 libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1
libfontconfig1 libfontenc1 libgif7 libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libice6 libjpeg-turbo8 libjpeg8 liblcms2-2 libllvm9 libnspr4
libnss3 libpciaccess0 libpcsclite1 libsensors-config libsensors5 libsm6 libvulkan1 libwayland-client0 libx11-xcb1 libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0
libxcb-present0 libxcb-randr0 libxcb-shape0 libxcb-sync1 libxcomposite1 libxdamage1 libxfixes3 libxft2 libxi6 libxinerama1 libxkbfile1 libxmu6 libxpm4 libxrandr2
libxrender1 libxshmfence1 libxt6 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 mesa-vulkan-drivers openjdk-11-jre openjdk-11-jre-headless x11-common x11-utils
0 upgraded, 74 newly installed, 0 to remove and 0 not upgraded.
Need to get 72.1 MB of archives.
After this operation, 555 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="335" src="https://www.osradar.com/wp-content/uploads/2020/07/1-4-1024x335.png" alt="1.- Install Java on Ubuntu 20.04" class="wp-image-21627" srcset="https://www.osradar.com/wp-content/uploads/2020/07/1-4-1024x335.png 1024w, https://www.osradar.com/wp-content/uploads/2020/07/1-4-300x98.png 300w, https://www.osradar.com/wp-content/uploads/2020/07/1-4-768x251.png 768w, https://www.osradar.com/wp-content/uploads/2020/07/1-4-696x227.png 696w, https://www.osradar.com/wp-content/uploads/2020/07/1-4-1068x349.png 1068w, https://www.osradar.com/wp-content/uploads/2020/07/1-4.png 1359w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Install Java on Ubuntu 20.04</figcaption></figure>



<p>After the process is finished, check the functioning of Java, showing the installed version.</p>



<pre class="wp-block-preformatted">:~$ java --version
openjdk 11.0.7 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-3ubuntu1, mixed mode, sharing)</pre>



<p>Now you can continue.</p>



<h3>2.- Download and Install Apache Solr on Ubuntu 20.04</h3>



<p>Once we have Java installed correctly we can download and install Apache Solr.</p>



<p>To download it you can visit the project&#8217;s website or use a mirror as in my case:</p>



<pre class="wp-block-preformatted">:~$ wget -c http://mirrors.advancedhosters.com/apache/lucene/solr/8.5.2/solr-8.5.2.tgz
--2020-07-14 19:09:14-- http://mirrors.advancedhosters.com/apache/lucene/solr/8.5.2/solr-8.5.2.tgz
Resolving mirrors.advancedhosters.com (mirrors.advancedhosters.com)… 213.174.147.249, 2a02:b48:6:1::2
Connecting to mirrors.advancedhosters.com (mirrors.advancedhosters.com)|213.174.147.249|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 190485345 (182M) [application/x-gzip]
Saving to: ‘solr-8.5.2.tgz’
solr-8.5.2.tgz 100%[=====================================================================================>] 181.66M 612KB/s in 4m 36s
2020-07-14 19:13:51 (674 KB/s) - ‘solr-8.5.2.tgz’ saved [190485345/190485345]</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="176" src="https://www.osradar.com/wp-content/uploads/2020/07/2-3-1024x176.png" alt="2.- Download and install Apache Solr on Ubuntu 20.04" class="wp-image-21628" srcset="https://www.osradar.com/wp-content/uploads/2020/07/2-3-1024x176.png 1024w, https://www.osradar.com/wp-content/uploads/2020/07/2-3-300x52.png 300w, https://www.osradar.com/wp-content/uploads/2020/07/2-3-768x132.png 768w, https://www.osradar.com/wp-content/uploads/2020/07/2-3-696x120.png 696w, https://www.osradar.com/wp-content/uploads/2020/07/2-3-1068x184.png 1068w, https://www.osradar.com/wp-content/uploads/2020/07/2-3.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Download and install Apache Solr on Ubuntu 20.04</figcaption></figure>



<p><strong>At the time of writing, the latest stable version of Apache Solr is 8.5.2</strong></p>



<p>Then, it is necessary to decompress the downloaded file:</p>



<pre class="wp-block-preformatted">:~$ tar fxvz solr-8.5.2.tgz</pre>



<p>This will create a new folder that we have to access to locate the script that will install it.</p>



<pre class="wp-block-preformatted">:~$ cd solr-8.5.2/</pre>



<p>And then, proceed to complete the installation with the following command that invokes a script called <code>install_solr_service.sh</code> and requires as parameter the downloaded compressed file.</p>



<pre class="wp-block-preformatted">:~$ sudo bash bin/install_solr_service.sh ~/solr-8.5.2.tgz </pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1011" height="569" src="https://www.osradar.com/wp-content/uploads/2020/07/3-3.png" alt="3.- Installing Apache Solr on Ubuntu 20.04" class="wp-image-21629" srcset="https://www.osradar.com/wp-content/uploads/2020/07/3-3.png 1011w, https://www.osradar.com/wp-content/uploads/2020/07/3-3-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2020/07/3-3-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2020/07/3-3-696x392.png 696w" sizes="(max-width: 1011px) 100vw, 1011px" /><figcaption>3.- Installing Apache Solr on Ubuntu 20.04</figcaption></figure>



<p>In the end, you&#8217;ll see that the service will be up and running.</p>



<p>Remember that Apache Solr is run as a Systemd service. So you can start it, stop it, and check it out without any problems with the <a href="https://www.osradar.com/the-linux-systemctl-command/" target="_blank" rel="noreferrer noopener">systemctl command</a>.</p>



<p>Now we just have to create a new collection. To do this, run the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo su solr -c "/opt/solr/bin/solr create -c osradar -n data_driven_schema_configs"
Created new core 'osradar</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="860" height="141" src="https://www.osradar.com/wp-content/uploads/2020/07/4.png" alt="4.- Creating a new colletion" class="wp-image-21630" srcset="https://www.osradar.com/wp-content/uploads/2020/07/4.png 860w, https://www.osradar.com/wp-content/uploads/2020/07/4-300x49.png 300w, https://www.osradar.com/wp-content/uploads/2020/07/4-768x126.png 768w, https://www.osradar.com/wp-content/uploads/2020/07/4-696x114.png 696w" sizes="(max-width: 860px) 100vw, 860px" /><figcaption>4.- Creating a new colletion</figcaption></figure>



<p>Remember that you can replace <strong>osradar</strong> with the name of the collection you want.</p>



<p>Now it remains for you to access the Apache Solr web interface. This web interface works through port <strong>8983</strong> and has to be available in the Firewall.</p>



<p>Open your web browser and go to <code>http://server-ip:8983</code> and you will see the following</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/07/5-1024x506.png" alt="5.- Apache Solr on Ubuntu 20.04" class="wp-image-21631" srcset="https://www.osradar.com/wp-content/uploads/2020/07/5-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/07/5-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/07/5-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/07/5-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/07/5-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/07/5.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>5.- Apache Solr on Ubuntu 20.04</figcaption></figure>



<p>And so Apache Solr will be installed and ready to take full advantage of your applications.</p>



<h2>Conclusion</h2>



<p>Apache Solr is a vital tool for many systems. It is a member of the Apache Foundation which gives an idea of the quality of the product. In this sense, installing it can help our systems use the full potential of a vertical search.</p>



<p>So, share this post and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">our Telegram Channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-solr-ubuntu-20-04/">How to install Apache Solr on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-apache-solr-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
