<br />
<b>Warning</b>:  Undefined array key "global_protection_id" in <b>/home/wikitechy/public_html/interview-questions/wp-content/plugins/content-protector/inc/class-ps-rest-handler.php</b> on line <b>51</b><br />
{"id":242,"date":"2021-07-12T15:17:04","date_gmt":"2021-07-12T15:17:04","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=242"},"modified":"2021-09-14T10:18:42","modified_gmt":"2021-09-14T10:18:42","slug":"how-to-install-apache-solr","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-to-install-apache-solr\/","title":{"rendered":"How to install apache Solr ?"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<h2 id=\"install-apache-solr\" class=\"color-purple\" style=\"text-align: justify;\">Install apache Solr<\/h2>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-sm-12\">\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>Solr is open source search platform and built upon java library. It is one of the most popular search platform used by many websites so that it can search and index across the site then return associated content based on search query.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<p style=\"text-align: justify;\"><b>Step 1:<\/b>\u00a0Go to cmd prompt then check for JRE with right version.<\/p>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>If JRE is available in your system it will show you the version. If not then you have to install JRE.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"ImageContent\" style=\"text-align: justify;\">\n<div class=\"hddn\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-medium\" src=\"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/install-solr-step-1.png\" alt=\"install solr step 1\" width=\"676\" height=\"342\" \/><\/div>\n<\/div>\n<p style=\"text-align: justify;\"><b>Step 2:<\/b>\u00a0Download require Solr version from below url<\/p>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li><a href=\"https:\/\/archive.apache.org\/dist\/lucene\/solr\/\" target=\"_blank\" rel=\"noopener\">https:\/\/archive.apache.org\/dist\/lucene\/solr\/<\/a><\/li>\n<\/ul>\n<\/div>\n<\/div>\n<p style=\"text-align: justify;\"><b>Step 3:<\/b>\u00a0Extract the Zip folder in your machine. Now go to extracted Solr folder. Get inside the example folder and execute the command.<\/p>\n<div class=\"ImageContent\" style=\"text-align: justify;\">\n<div class=\"hddn\"><a href=\"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/install-solr-step-3.png\"><img decoding=\"async\" class=\"aligncenter size-medium\" src=\"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/install-solr-step-3.png\" alt=\"install solr step 3\" width=\"326\" height=\"269\" \/><\/a><\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>As soon as you run the above command Solr will start with default port 8983. That will accessible on http:\/\/localhost:8983\/solr\/#\/<\/li>\n<li>This will install Solr and run in the background. By default it will use the port number 8983.<\/li>\n<li>You can also change default port number to one of your choice.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"ImageContent\" style=\"text-align: justify;\">\n<div class=\"hddn\"><img decoding=\"async\" class=\"aligncenter size-medium\" src=\"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/install-solr-step-4.png\" alt=\"install solr step 4\" width=\"1089\" height=\"447\" \/><\/div>\n<\/div>\n<p style=\"text-align: justify;\"><b>Step 4:<\/b> To Configure Solr with Drupal 7.x Download Solr from https:\/\/www.drupal.org\/project\/apachesolr download the recommended version and install.<\/p>\n<p style=\"text-align: justify;\"><b>Step 5:<\/b>\u00a0Go to \\apachesolr-7.x-1.8\\apachesolr\\solr-conf\\solr-4.x copy all the files to Solr server directory [solr-4.6.1\\example\\solr\\collection1\\conf\\] and replace them with existing files.<\/p>\n<p style=\"text-align: justify;\">After replacing your file should look like.<\/p>\n<div class=\"ImageContent\" style=\"text-align: justify;\">\n<div class=\"hddn\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium\" src=\"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/install-solr-step-5.png\" alt=\"install solr step 5\" width=\"1122\" height=\"598\" \/><\/div>\n<\/div>\n<p style=\"text-align: justify;\">Now your Solr admin page look like<\/p>\n<div class=\"hddn\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium\" src=\"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/install-solr-step-6.png\" alt=\"install solr step 6\" width=\"1577\" height=\"574\" \/><\/div>\n<p style=\"text-align: justify;\"><ins class=\"adsbygoogle\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-8011936895487070\" data-ad-slot=\"3045893295\" data-adsbygoogle-status=\"done\" data-ad-status=\"unfilled\"><ins id=\"aswift_2_expand\" tabindex=\"0\" title=\"Advertisement\" aria-label=\"Advertisement\"><ins id=\"aswift_2_anchor\"><\/ins><\/ins><\/ins><b>Step 6:<\/b>\u00a0So we are almost done with Solr server setup. configure on module level<\/p>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>To do this we need to go to Solr setting page \/admin\/config\/search\/apachesolr\/settings<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<p style=\"text-align: justify;\">Fill up mandatory detail like Solr server URL and Description and hit on Test Connection button.<\/p>\n<div class=\"ImageContent\" style=\"text-align: justify;\">\n<div class=\"hddn\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium\" src=\"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/install-solr-step-7.png\" alt=\"install solr step 7\" width=\"717\" height=\"788\" \/><\/div>\n<\/div>\n<p style=\"text-align: justify;\"><b>Step 7:<\/b>\u00a0Almost done with Solr server setup and configuration, then do indexing by visiting default index page admin\/config\/search\/apachesolr.<\/p>\n<div class=\"ImageContent\">\n<div class=\"hddn\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium\" src=\"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/install-solr-step-8.png\" alt=\"install solr step 8\" width=\"996\" height=\"782\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer:Solr is open source search platform and built upon java library<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"passster_activate_protection":false,"passster_protect_child_pages":"","passster_protection_type":"password","passster_password":"","passster_activate_overwrite_defaults":"","passster_headline":"","passster_instruction":"","passster_placeholder":"","passster_button":"","passster_id":"","passster_activate_misc_settings":"","passster_redirect_url":"","passster_hide":"no","passster_area_shortcode":"","gtb_hide_title":false,"gtb_wrap_title":false,"gtb_class_title":"","gtb_remove_headerfooter":false,"footnotes":""},"categories":[684],"tags":[195,799,787,790,491,203,199,214,198,363,209,205,222,826,800,196,212,712,213,825,827,824,709,690,828,689,691,710,207,711,366,361,204,282,367,206,801,692,693,789,788,708,200,197,280,364,713,285,829],"class_list":["post-242","post","type-post","status-publish","format-standard","hentry","category-apache-solr","tag-accenture-interview-questions-and-answers","tag-apache-interview-questions-and-answers-for-experienced","tag-apache-real-time-interview-questions","tag-apache-solr-performance","tag-applied-materials-interview-questions-and-answers","tag-capgemini-interview-questions-and-answers","tag-casting-networks-india-pvt-limited-interview-questions-and-answers","tag-cgi-group-inc-interview-questions-and-answers","tag-chetu-interview-questions-and-answers","tag-ciena-corporation-interview-questions-and-answers","tag-collabera-technologies-interview-questions-and-answers","tag-dell-international-services-india-pvt-ltd-interview-questions-and-answers","tag-flipkart-interview-questions-and-answers","tag-how-to-install-solr","tag-hybris-solr-interview-questions","tag-ibm-interview-questions-and-answers","tag-indecomm-global-services-interview-questions-and-answers","tag-indiabulls-technology-solutions-ltd-interview-questions-and-answers","tag-infosys-technologies-interview-questions-and-answers","tag-install-apache-solr","tag-install-apache-solr-centos","tag-install-solr","tag-install-solr-centos","tag-install-solr-centos-7","tag-install-solr-debian","tag-install-solr-mac","tag-install-solr-ubuntu","tag-mavenir-interview-questions-and-answers","tag-mphasis-interview-questions-and-answers","tag-nagarro-software-pvt-ltd-interview-questions-and-answers","tag-netapp-interview-questions-and-answers","tag-opentext-technologies-interview-questions-and-answers","tag-oracle-corporation-interview-questions-and-answers","tag-persistent-systems-interview-questions-and-answers","tag-rbs-india-development-centre-pvt-ltd-interview-questions-and-answers","tag-sap-labs-india-pvt-ltd-interview-questions-and-answers","tag-solr-admin-interview-questions","tag-solr-as-windows-service","tag-solr-command-not-found","tag-solr-indexing","tag-solr-questions-and-answers","tag-solr-windows-tutorial","tag-tech-mahindra-interview-questions-and-answers","tag-unitedhealth-group-interview-questions-and-answers","tag-virtusa-consulting-services-pvt-ltd-interview-questions-and-answers","tag-wells-fargo-interview-questions-and-answers","tag-wm-global-technology-services-india-pvt-ltd-interview-questions-and-answers","tag-xoriant-solutions-pvt-ltd-interview-questions-and-answers","tag-yum-install-solr"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to install apache Solr ? - Apache Solr Interview Questions<\/title>\n<meta name=\"description\" content=\"How to install apache Solr ? - solr interview questions and answers - Solr is open source search platform and built upon java library\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-to-install-apache-solr\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install apache Solr ? - Apache Solr Interview Questions\" \/>\n<meta property=\"og:description\" content=\"How to install apache Solr ? - solr interview questions and answers - Solr is open source search platform and built upon java library\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-to-install-apache-solr\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-12T15:17:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-14T10:18:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/install-solr-step-1.png\" \/>\n<meta name=\"author\" content=\"Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-to-install-apache-solr\/\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-to-install-apache-solr\/\",\"name\":\"How to install apache Solr ? - Apache Solr Interview Questions\",\"isPartOf\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-to-install-apache-solr\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-to-install-apache-solr\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/install-solr-step-1.png\",\"datePublished\":\"2021-07-12T15:17:04+00:00\",\"dateModified\":\"2021-09-14T10:18:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"How to install apache Solr ? - solr interview questions and answers - Solr is open source search platform and built upon java library\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-to-install-apache-solr\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-to-install-apache-solr\/#primaryimage\",\"url\":\"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/install-solr-step-1.png\",\"contentUrl\":\"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/install-solr-step-1.png\"},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757\",\"name\":\"Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"caption\":\"Editor\"},\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install apache Solr ? - Apache Solr Interview Questions","description":"How to install apache Solr ? - solr interview questions and answers - Solr is open source search platform and built upon java library","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-to-install-apache-solr\/","og_locale":"en_US","og_type":"article","og_title":"How to install apache Solr ? - Apache Solr Interview Questions","og_description":"How to install apache Solr ? - solr interview questions and answers - Solr is open source search platform and built upon java library","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-to-install-apache-solr\/","og_site_name":"Wikitechy","article_published_time":"2021-07-12T15:17:04+00:00","article_modified_time":"2021-09-14T10:18:42+00:00","og_image":[{"url":"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/install-solr-step-1.png"}],"author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-to-install-apache-solr\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-to-install-apache-solr\/","name":"How to install apache Solr ? - Apache Solr Interview Questions","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-to-install-apache-solr\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-to-install-apache-solr\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/install-solr-step-1.png","datePublished":"2021-07-12T15:17:04+00:00","dateModified":"2021-09-14T10:18:42+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"How to install apache Solr ? - solr interview questions and answers - Solr is open source search platform and built upon java library","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-to-install-apache-solr\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-to-install-apache-solr\/#primaryimage","url":"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/install-solr-step-1.png","contentUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/install-solr-step-1.png"},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757","name":"Editor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","caption":"Editor"},"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=242"}],"version-history":[{"count":3,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/242\/revisions"}],"predecessor-version":[{"id":3718,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/242\/revisions\/3718"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}