<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":236,"date":"2021-07-12T12:03:13","date_gmt":"2021-07-12T12:03:13","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=236"},"modified":"2021-09-14T10:31:23","modified_gmt":"2021-09-14T10:31:23","slug":"how-does-the-apache-solr-works","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-does-the-apache-solr-works\/","title":{"rendered":"How does the apache Solr works ?"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<h2 id=\"apache-solr-works\" class=\"color-purple\" style=\"text-align: justify;\">Apache Solr works<\/h2>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-sm-12\">\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"indexing\" class=\"color-purple\">Indexing<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>Apache Solr is capable to get quick search responses because, as a replacement for searching the text directly, it searches an index instead.<\/li>\n<li>It stores index in a directory called index in the data directory.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"text-center row\" style=\"text-align: justify;\">\n<div class=\"col-sm-12\">\n<div id=\"bsa-zone_1590522538159-8_123456\"><\/div>\n<\/div>\n<\/div>\n<div class=\"hddn\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-medium\" src=\"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/how-apache-solr-works (1).gif\" alt=\"how apache solr works\" width=\"575\" height=\"335\" \/><\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"working\" class=\"color-purple\">Working:<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>The Apache Solr creates inverted index of the documents that are posted in to its collection or core.<\/li>\n<li>Core or collection is just part entity which can be used to post documents and running queries on that set of documents.<\/li>\n<li>Inverted index is a main term in the domain of Information Retrieval and Natural Language Processing.<\/li>\n<li>Now take a document, note down all the unique words appearing in that document as well as note the frequency of the words. Hence the inverted index is ready.<\/li>\n<li>Solr creates similar inverted index of the documents posted to its core using a defined schema.<\/li>\n<li>Schema is a blue print which helps Solr in creating inverted index of the documents by giving a set of predefined fields in the\u00a0<code>schema.xml<\/code>\u00a0file.<\/li>\n<li>Once Solr completes indexing the documents posted to its core or collection it can be used to run queries.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"hddn\"><img decoding=\"async\" class=\"aligncenter size-medium\" src=\"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/solr-work.png\" alt=\"solr work\" width=\"1614\" height=\"1307\" \/><\/div>\n<div class=\"Content\">\n<div class=\"hddn\">\n<ul>\n<li style=\"text-align: justify;\">Now a user can query Solr for related documents using its query parser or admin panel.<\/li>\n<li style=\"text-align: justify;\">When a query is given to Solr, it breaks the query into different chunks or entities and matches it with the inverted index of the documents created previous.<\/li>\n<li style=\"text-align: justify;\">The documents obtained accordingly of a Solr search is based on the same class and other constraints defined in its\u00a0<code>schema.xml<\/code>\u00a0and\u00a0<code>solr.config<\/code>\u00a0file.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer:Apache Solr is capable to get quick search responses because, as a replacement for searching the text directly<\/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,791,790,785,491,203,199,214,198,363,209,205,222,792,793,798,794,729,797,796,795,786,766,800,196,212,712,213,710,207,711,366,361,204,282,367,206,801,784,783,789,768,769,720,788,200,197,280,364,744,713,285],"class_list":["post-236","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-interview-questions-and-answers-for-experienced","tag-apache-solr-performance","tag-apache-work","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-apache-solr-works","tag-how-apache-works","tag-how-does-apache-solr-work","tag-how-does-apache-work","tag-how-does-solr-store-data","tag-how-does-solr-work","tag-how-does-the-apache-solr-works","tag-how-solr-search-works","tag-how-solr-works","tag-how-solr-works-internally","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-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-full-text-search-example","tag-solr-index-files","tag-solr-indexing","tag-solr-indexing-process","tag-solr-indexing-tutorial","tag-solr-inverted-index","tag-solr-questions-and-answers","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-what-is-solr-indexing","tag-wm-global-technology-services-india-pvt-ltd-interview-questions-and-answers","tag-xoriant-solutions-pvt-ltd-interview-questions-and-answers"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How does the apache Solr works ? - Apache Solr Interview Questions<\/title>\n<meta name=\"description\" content=\"How does the apache Solr works ? - apache solr interview questions - Apache Solr is capable to get quick search responses because, as a replacement for searching the text directly\" \/>\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-does-the-apache-solr-works\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How does the apache Solr works ? - Apache Solr Interview Questions\" \/>\n<meta property=\"og:description\" content=\"How does the apache Solr works ? - apache solr interview questions - Apache Solr is capable to get quick search responses because, as a replacement for searching the text directly\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-does-the-apache-solr-works\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-12T12:03:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-14T10:31:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/how-apache-solr-works%20(1).gif\" \/>\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=\"2 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-does-the-apache-solr-works\/\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-does-the-apache-solr-works\/\",\"name\":\"How does the apache Solr works ? - Apache Solr Interview Questions\",\"isPartOf\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-does-the-apache-solr-works\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-does-the-apache-solr-works\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/solr-work.png\",\"datePublished\":\"2021-07-12T12:03:13+00:00\",\"dateModified\":\"2021-09-14T10:31:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"How does the apache Solr works ? - apache solr interview questions - Apache Solr is capable to get quick search responses because, as a replacement for searching the text directly\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-does-the-apache-solr-works\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-does-the-apache-solr-works\/#primaryimage\",\"url\":\"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/solr-work.png\",\"contentUrl\":\"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/solr-work.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 does the apache Solr works ? - Apache Solr Interview Questions","description":"How does the apache Solr works ? - apache solr interview questions - Apache Solr is capable to get quick search responses because, as a replacement for searching the text directly","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-does-the-apache-solr-works\/","og_locale":"en_US","og_type":"article","og_title":"How does the apache Solr works ? - Apache Solr Interview Questions","og_description":"How does the apache Solr works ? - apache solr interview questions - Apache Solr is capable to get quick search responses because, as a replacement for searching the text directly","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-does-the-apache-solr-works\/","og_site_name":"Wikitechy","article_published_time":"2021-07-12T12:03:13+00:00","article_modified_time":"2021-09-14T10:31:23+00:00","og_image":[{"url":"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/how-apache-solr-works (1).gif"}],"author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-does-the-apache-solr-works\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-does-the-apache-solr-works\/","name":"How does the apache Solr works ? - Apache Solr Interview Questions","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-does-the-apache-solr-works\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-does-the-apache-solr-works\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/solr-work.png","datePublished":"2021-07-12T12:03:13+00:00","dateModified":"2021-09-14T10:31:23+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"How does the apache Solr works ? - apache solr interview questions - Apache Solr is capable to get quick search responses because, as a replacement for searching the text directly","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-does-the-apache-solr-works\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-does-the-apache-solr-works\/#primaryimage","url":"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/solr-work.png","contentUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/solr-work.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\/236","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=236"}],"version-history":[{"count":3,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/236\/revisions"}],"predecessor-version":[{"id":3724,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/236\/revisions\/3724"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}