{"id":23643,"date":"2023-05-05T04:14:07","date_gmt":"2023-05-05T04:14:07","guid":{"rendered":"https:\/\/www.booksofall.com\/?post_type=product&#038;p=23643"},"modified":"2023-05-05T04:14:07","modified_gmt":"2023-05-05T04:14:07","slug":"solr-for-newbies-workshop","status":"publish","type":"product","link":"https:\/\/www.booksofall.com\/fr\/solr-for-newbies-workshop\/","title":{"rendered":"Solr for newbies workshop"},"content":{"rendered":"<h2>What is Solr<\/h2>\n<p>Solr is an <a href=\"https:\/\/en.wikipedia.org\/wiki\/Open_source\">open source<\/a>\u00a0<i>search engine<\/i>\u00a0developed by the<a href=\"https:\/\/www.apache.org\/\"> Apache Software Foundation<\/a>. On its home page <a href=\"https:\/\/solr.apache.org\/\">Solr<\/a> advertises itself as<\/p>\n<p><em>Solr is the popular, blazing-fast, <\/em><br \/>\n<em>open source enterprise search platform built on Apache Lucene.<\/em><\/p>\n<p>and the book Solr in Action describes Solr as<\/p>\n<p><em>Solr is a scalable, ready-to-deploy enterprise search engine that\u2019s optimized to search large volumes of text-centric data and return results sorted by relevance [p. 4]<\/em><\/p>\n<p>The fact that Solr is a search engine means that there is a strong focus on speed, large volumes of text data, and the ability to sort the results by relevance.<\/p>\n<p>Although Solr could technically be described as a NoSQL database (i.e. it allows us to store and retrieve data in a non-relational form) it is better to think of it as a search engine to emphasize the fact that it is better suited for text-centric and read-mostly environments [Solr in Action, p. 4].<\/p>\n<h3>What is Lucene<\/h3>\n<p>The core functionality that Solr makes available is provided by a <a href=\"https:\/\/www.java.com\/en\/\">Java<\/a> library called <a href=\"https:\/\/lucene.apache.org\/\">Lucene<\/a>. Lucene is the brain behind the \u201cindexing and search technology, as well as spellchecking, hit highlighting and advanced analysis\/tokenization capabilities\u201d that we will see in this tutorial.<\/p>\n<p>But Lucene is a Java Library than can only be used from other Java programs. Solr on the other hand is a wrapper around Lucene that allows us to use the Lucene functionality from any programming language that can submit HTTP requests.<\/p>\n<p id=\"BEYoQfv\"><img loading=\"lazy\" decoding=\"async\" width=\"546\" height=\"225\" class=\"alignnone size-full wp-image-23646 \" src=\"https:\/\/www.booksofall.com\/wp-content\/uploads\/2023\/05\/img_6454803c0a394.png\" alt=\"\" \/><\/p>\n<p>In this diagram the\u00a0<i>client application<\/i>\u00a0could be a program written in <a href=\"https:\/\/www.ruby-lang.org\/en\/\">Ruby<\/a> or <a href=\"https:\/\/www.python.org\/\">Python<\/a>. In fact, as we will see throughout this tutorial, it can also be a system utility like cURL or a web browser. Anything that can submit HTTP requests can communicate with Solr.<\/p>\n<h2>Installing Solr for the first time<\/h2>\n<p>To install Solr we are going to use a tool called Docker that allows us to download small virtual machines (called containers) with pre-installed software. In our case we\u2019ll download a container with Solr 9.1.0 installed on it and use that during the workshop.<\/p>\n<p><b>NOTE:<\/b>\u00a0You can also download and install the Solr binaries directly on your machine without using Docker. You\u2019ll need to have the Java Development Kit (JDK) for this to method to work. If you are interested in this approach take a look at these instructions instead.<\/p>\n<p>For the Docker installation let\u2019s start by going to https:\/\/www.docker.com\/, download the \u201cDocker Desktop\u201d, install it, and run it.<\/p>\n<p>Once installed run the following command from the terminal to make sure it\u2019s running:<\/p>\n<p id=\"MHfemUc\"><img loading=\"lazy\" decoding=\"async\" width=\"544\" height=\"174\" class=\"alignnone size-full wp-image-23647 \" src=\"https:\/\/www.booksofall.com\/wp-content\/uploads\/2023\/05\/img_6454805377759.png\" alt=\"\" \/><\/p>\n<p>If Docker is\u00a0<i>not<\/i>\u00a0running we\u2019ll see an error that will indicate something along the lines of<\/p>\n<p id=\"wFwaerc\"><img loading=\"lazy\" decoding=\"async\" width=\"537\" height=\"85\" class=\"alignnone size-full wp-image-23648 \" src=\"https:\/\/www.booksofall.com\/wp-content\/uploads\/2023\/05\/img_6454805ab94b4.png\" alt=\"\" \/><\/p>\n<p>If we see this error it could be that the Docker Desktop app has not fully started. Wait a few seconds and try again. We can also open the \u201cDocker Desktop\u201d app and see its status.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><iframe style=\"width: 100%; height: 750px; border: none;\" src=\"https:\/\/online.visual-paradigm.com\/share\/book\/solr-for-newbies-workshop-1cfyr6k7v8?p=1\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"featured_media":23651,"template":"","meta":{"_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"Solr is an open-source search platform that provides full-text search, hit highlighting, and faceted search. Learn more about it here!"},"product_brand":[],"product_cat":[382],"product_tag":[],"class_list":{"0":"post-23643","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-search-engines","8":"first","9":"instock","10":"shipping-taxable","11":"product-type-simple"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Solr for newbies workshop - BooksOfAll French<\/title>\n<meta name=\"description\" content=\"Solr is an open-source search platform that provides full-text search, hit highlighting, and faceted search. Learn more about it here!\" \/>\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.booksofall.com\/fr\/solr-for-newbies-workshop\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Solr for newbies workshop - BooksOfAll French\" \/>\n<meta property=\"og:description\" content=\"Solr is an open-source search platform that provides full-text search, hit highlighting, and faceted search. Learn more about it here!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.booksofall.com\/fr\/solr-for-newbies-workshop\/\" \/>\n<meta property=\"og:site_name\" content=\"BooksOfAll French\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2023\/05\/Solr-for-newbies-workshop.jpg\" \/><meta property=\"og:image\" content=\"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2023\/05\/Solr-for-newbies-workshop.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"828\" \/>\n\t<meta property=\"og:image:height\" content=\"1170\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2023\/05\/Solr-for-newbies-workshop.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.booksofall.com\/fr\/solr-for-newbies-workshop\/\",\"url\":\"https:\/\/www.booksofall.com\/fr\/solr-for-newbies-workshop\/\",\"name\":\"Solr for newbies workshop - BooksOfAll French\",\"isPartOf\":{\"@id\":\"https:\/\/www.booksofall.com\/fr\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.booksofall.com\/fr\/solr-for-newbies-workshop\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/fr\/solr-for-newbies-workshop\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2023\/05\/Solr-for-newbies-workshop.jpg\",\"datePublished\":\"2023-05-05T04:14:07+00:00\",\"description\":\"Solr is an open-source search platform that provides full-text search, hit highlighting, and faceted search. Learn more about it here!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.booksofall.com\/fr\/solr-for-newbies-workshop\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.booksofall.com\/fr\/solr-for-newbies-workshop\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/www.booksofall.com\/fr\/solr-for-newbies-workshop\/#primaryimage\",\"url\":\"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2023\/05\/Solr-for-newbies-workshop.jpg\",\"contentUrl\":\"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2023\/05\/Solr-for-newbies-workshop.jpg\",\"width\":\"828\",\"height\":\"1170\",\"caption\":\"Solr for newbies workshop\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.booksofall.com\/fr\/solr-for-newbies-workshop\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.booksofall.com\/fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Categories\",\"item\":\"https:\/\/www.booksofall.com\/fr\/categories\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Solr for newbies workshop\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.booksofall.com\/fr\/#website\",\"url\":\"https:\/\/www.booksofall.com\/fr\/\",\"name\":\"BooksOfAll French\",\"description\":\"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.\",\"publisher\":{\"@id\":\"https:\/\/www.booksofall.com\/fr\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.booksofall.com\/fr\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.booksofall.com\/fr\/#organization\",\"name\":\"BooksOfAll French\",\"url\":\"https:\/\/www.booksofall.com\/fr\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/www.booksofall.com\/fr\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2022\/06\/booksofall-logo-2.png\",\"contentUrl\":\"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2022\/06\/booksofall-logo-2.png\",\"width\":166,\"height\":30,\"caption\":\"BooksOfAll French\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/fr\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Solr for newbies workshop - BooksOfAll French","description":"Solr is an open-source search platform that provides full-text search, hit highlighting, and faceted search. Learn more about it here!","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.booksofall.com\/fr\/solr-for-newbies-workshop\/","og_locale":"fr_FR","og_type":"article","og_title":"Solr for newbies workshop - BooksOfAll French","og_description":"Solr is an open-source search platform that provides full-text search, hit highlighting, and faceted search. Learn more about it here!","og_url":"https:\/\/www.booksofall.com\/fr\/solr-for-newbies-workshop\/","og_site_name":"BooksOfAll French","og_image":[{"url":"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2023\/05\/Solr-for-newbies-workshop.jpg","type":"","width":"","height":""},{"width":828,"height":1170,"url":"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2023\/05\/Solr-for-newbies-workshop.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_image":"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2023\/05\/Solr-for-newbies-workshop.jpg","twitter_misc":{"Dur\u00e9e de lecture estim\u00e9e":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.booksofall.com\/fr\/solr-for-newbies-workshop\/","url":"https:\/\/www.booksofall.com\/fr\/solr-for-newbies-workshop\/","name":"Solr for newbies workshop - BooksOfAll French","isPartOf":{"@id":"https:\/\/www.booksofall.com\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.booksofall.com\/fr\/solr-for-newbies-workshop\/#primaryimage"},"image":{"@id":"https:\/\/www.booksofall.com\/fr\/solr-for-newbies-workshop\/#primaryimage"},"thumbnailUrl":"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2023\/05\/Solr-for-newbies-workshop.jpg","datePublished":"2023-05-05T04:14:07+00:00","description":"Solr is an open-source search platform that provides full-text search, hit highlighting, and faceted search. Learn more about it here!","breadcrumb":{"@id":"https:\/\/www.booksofall.com\/fr\/solr-for-newbies-workshop\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.booksofall.com\/fr\/solr-for-newbies-workshop\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.booksofall.com\/fr\/solr-for-newbies-workshop\/#primaryimage","url":"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2023\/05\/Solr-for-newbies-workshop.jpg","contentUrl":"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2023\/05\/Solr-for-newbies-workshop.jpg","width":"828","height":"1170","caption":"Solr for newbies workshop"},{"@type":"BreadcrumbList","@id":"https:\/\/www.booksofall.com\/fr\/solr-for-newbies-workshop\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.booksofall.com\/fr\/"},{"@type":"ListItem","position":2,"name":"Categories","item":"https:\/\/www.booksofall.com\/fr\/categories\/"},{"@type":"ListItem","position":3,"name":"Solr for newbies workshop"}]},{"@type":"WebSite","@id":"https:\/\/www.booksofall.com\/fr\/#website","url":"https:\/\/www.booksofall.com\/fr\/","name":"BooksOfAll French","description":"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.","publisher":{"@id":"https:\/\/www.booksofall.com\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.booksofall.com\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/www.booksofall.com\/fr\/#organization","name":"BooksOfAll French","url":"https:\/\/www.booksofall.com\/fr\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.booksofall.com\/fr\/#\/schema\/logo\/image\/","url":"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2022\/06\/booksofall-logo-2.png","contentUrl":"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2022\/06\/booksofall-logo-2.png","width":166,"height":30,"caption":"BooksOfAll French"},"image":{"@id":"https:\/\/www.booksofall.com\/fr\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.booksofall.com\/fr\/wp-json\/wp\/v2\/product\/23643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.booksofall.com\/fr\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.booksofall.com\/fr\/wp-json\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.booksofall.com\/fr\/wp-json\/wp\/v2\/media\/23651"}],"wp:attachment":[{"href":"https:\/\/www.booksofall.com\/fr\/wp-json\/wp\/v2\/media?parent=23643"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/www.booksofall.com\/fr\/wp-json\/wp\/v2\/product_brand?post=23643"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.booksofall.com\/fr\/wp-json\/wp\/v2\/product_cat?post=23643"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.booksofall.com\/fr\/wp-json\/wp\/v2\/product_tag?post=23643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}