{"id":238,"date":"2021-07-12T13:57:33","date_gmt":"2021-07-12T13:57:33","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=238"},"modified":"2021-09-14T10:22:08","modified_gmt":"2021-09-14T10:22:08","slug":"how-solr-represents-data","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-solr-represents-data\/","title":{"rendered":"How Solr represents data ?"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<h2 id=\"solr-represents-data\" class=\"color-purple\" style=\"text-align: justify;\">Solr represents data<\/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>In Apache Solr, a Document is the part of search as well as index.<\/li>\n<li>Index consists of one or more Documents and then Document consists of one or more Fields.<\/li>\n<li>In database terminology,a Document corresponds to a row of the table, and a Field corresponds to a column of the table.<\/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\/apache-solr-with-hadoop (1).gif\" alt=\"apache solr with hadoop\" width=\"622\" height=\"335\" \/><\/div>\n<\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"schema\" class=\"color-purple\">Schema<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>Before adding documents to Solr, you need to specify the schema, represented in a file called\u00a0<code>schema.xml<\/code>.<\/li>\n<li>It is not suitable to modify the schema after documents has added to the index.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"text-center row\" style=\"text-align: justify;\"><\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"the-schema-declares\" class=\"color-purple\">The schema declares:<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ol>\n<li>what kinds of fields there are<\/li>\n<li>which field should be used as the unique\/primary key<\/li>\n<li>which fields are required<\/li>\n<li>how to index and search each field<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"field-types\" class=\"color-purple\">Field Types<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>In Solr, every field has a type.<\/li>\n<li>Apache Solr expands the variety of field types offered in Lucene.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<p style=\"text-align: justify;\"><b>Examples of basic field types available in Solr include:<\/b><\/p>\n<div class=\"Content\">\n<div class=\"hddn\">\n<ol>\n<li style=\"text-align: justify;\">float<\/li>\n<li style=\"text-align: justify;\">long<\/li>\n<li style=\"text-align: justify;\">double<\/li>\n<li style=\"text-align: justify;\">date<\/li>\n<li style=\"text-align: justify;\">text<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer:In Apache Solr, a Document is the part of search as well as index.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[684],"tags":[195,799,787,804,805,790,491,203,199,214,198,363,209,205,222,777,729,807,766,800,196,212,712,213,710,207,711,366,361,204,282,367,206,801,783,789,802,768,769,803,806,720,788,200,197,280,364,744,713,285],"class_list":["post-238","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","tag-apache-solr-interview-questions-and-answers","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-does-solr-indexing-work","tag-how-does-solr-store-data","tag-how-does-solr-store-datalucene-interview-questions-and-answers","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-index-files","tag-solr-indexing","tag-solr-indexing-in-hybris","tag-solr-indexing-process","tag-solr-indexing-tutorial","tag-solr-interview-questions","tag-solr-interview-questions-and-answers","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 v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How Solr represents data ? - Apache Solr Interview Questions<\/title>\n<meta name=\"description\" content=\"How Solr represents data ? - solr interview questions - In Apache Solr, a Document is the part of search as well as index.\" \/>\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-solr-represents-data\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How Solr represents data ? - Apache Solr Interview Questions\" \/>\n<meta property=\"og:description\" content=\"How Solr represents data ? - solr interview questions - In Apache Solr, a Document is the part of search as well as index.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-solr-represents-data\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-12T13:57:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-14T10:22:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/apache-solr-with-hadoop%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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/apache-solr\\\/how-solr-represents-data\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/apache-solr\\\/how-solr-represents-data\\\/\"},\"author\":{\"name\":\"Editor\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"headline\":\"How Solr represents data ?\",\"datePublished\":\"2021-07-12T13:57:33+00:00\",\"dateModified\":\"2021-09-14T10:22:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/apache-solr\\\/how-solr-represents-data\\\/\"},\"wordCount\":155,\"commentCount\":0,\"keywords\":[\"Accenture interview questions and answers\",\"apache interview questions and answers for experienced\",\"apache real time interview questions\",\"apache solr interview questions\",\"apache solr interview questions and answers\",\"apache solr performance\",\"Applied Materials interview questions and answers\",\"Capgemini interview questions and answers\",\"CASTING NETWORKS INDIA PVT LIMITED interview questions and answers\",\"CGI Group Inc interview questions and answers\",\"Chetu interview questions and answers\",\"Ciena Corporation interview questions and answers\",\"Collabera Technologies interview questions and answers\",\"Dell International Services India Pvt Ltd interview questions and answers\",\"Flipkart interview questions and answers\",\"how does solr indexing work\",\"how does solr store data\",\"how does solr store datalucene interview questions and answers\",\"how solr works internally\",\"hybris solr interview questions\",\"IBM interview questions and answers\",\"Indecomm Global Services interview questions and answers\",\"Indiabulls Technology Solutions Ltd interview questions and answers\",\"Infosys Technologies interview questions and answers\",\"Mavenir interview questions and answers\",\"Mphasis interview questions and answers\",\"Nagarro Software Pvt. Ltd interview questions and answers\",\"NetApp interview questions and answers\",\"Opentext Technologies interview questions and answers\",\"Oracle Corporation interview questions and answers\",\"Persistent Systems interview questions and answers\",\"RBS India Development Centre Pvt Ltd interview questions and answers\",\"SAP Labs India Pvt Ltd interview questions and answers\",\"solr admin interview questions\",\"solr index files\",\"solr indexing\",\"solr indexing in hybris\",\"solr indexing process\",\"solr indexing tutorial\",\"solr interview questions\",\"solr interview questions and answers\",\"solr inverted index\",\"solr questions and answers\",\"Tech Mahindra interview questions and answers\",\"UnitedHealth Group interview questions and answers\",\"Virtusa Consulting Services Pvt Ltd interview questions and answers\",\"Wells Fargo interview questions and answers\",\"what is solr indexing\",\"WM Global\u00a0Technology Services India Pvt Ltd interview questions and answers\",\"Xoriant Solutions Pvt Ltd interview questions and answers\"],\"articleSection\":[\"Apache Solr\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/apache-solr\\\/how-solr-represents-data\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/apache-solr\\\/how-solr-represents-data\\\/\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/apache-solr\\\/how-solr-represents-data\\\/\",\"name\":\"How Solr represents data ? - Apache Solr Interview Questions\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\"},\"datePublished\":\"2021-07-12T13:57:33+00:00\",\"dateModified\":\"2021-09-14T10:22:08+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"How Solr represents data ? - solr interview questions - In Apache Solr, a Document is the part of search as well as index.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/apache-solr\\\/how-solr-represents-data\\\/\"]}]},{\"@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\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"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:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"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 Solr represents data ? - Apache Solr Interview Questions","description":"How Solr represents data ? - solr interview questions - In Apache Solr, a Document is the part of search as well as index.","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-solr-represents-data\/","og_locale":"en_US","og_type":"article","og_title":"How Solr represents data ? - Apache Solr Interview Questions","og_description":"How Solr represents data ? - solr interview questions - In Apache Solr, a Document is the part of search as well as index.","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-solr-represents-data\/","og_site_name":"Wikitechy","article_published_time":"2021-07-12T13:57:33+00:00","article_modified_time":"2021-09-14T10:22:08+00:00","og_image":[{"url":"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-solr\/apache-solr-with-hadoop (1).gif","type":"","width":"","height":""}],"author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-solr-represents-data\/#article","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-solr-represents-data\/"},"author":{"name":"Editor","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"headline":"How Solr represents data ?","datePublished":"2021-07-12T13:57:33+00:00","dateModified":"2021-09-14T10:22:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-solr-represents-data\/"},"wordCount":155,"commentCount":0,"keywords":["Accenture interview questions and answers","apache interview questions and answers for experienced","apache real time interview questions","apache solr interview questions","apache solr interview questions and answers","apache solr performance","Applied Materials interview questions and answers","Capgemini interview questions and answers","CASTING NETWORKS INDIA PVT LIMITED interview questions and answers","CGI Group Inc interview questions and answers","Chetu interview questions and answers","Ciena Corporation interview questions and answers","Collabera Technologies interview questions and answers","Dell International Services India Pvt Ltd interview questions and answers","Flipkart interview questions and answers","how does solr indexing work","how does solr store data","how does solr store datalucene interview questions and answers","how solr works internally","hybris solr interview questions","IBM interview questions and answers","Indecomm Global Services interview questions and answers","Indiabulls Technology Solutions Ltd interview questions and answers","Infosys Technologies interview questions and answers","Mavenir interview questions and answers","Mphasis interview questions and answers","Nagarro Software Pvt. Ltd interview questions and answers","NetApp interview questions and answers","Opentext Technologies interview questions and answers","Oracle Corporation interview questions and answers","Persistent Systems interview questions and answers","RBS India Development Centre Pvt Ltd interview questions and answers","SAP Labs India Pvt Ltd interview questions and answers","solr admin interview questions","solr index files","solr indexing","solr indexing in hybris","solr indexing process","solr indexing tutorial","solr interview questions","solr interview questions and answers","solr inverted index","solr questions and answers","Tech Mahindra interview questions and answers","UnitedHealth Group interview questions and answers","Virtusa Consulting Services Pvt Ltd interview questions and answers","Wells Fargo interview questions and answers","what is solr indexing","WM Global\u00a0Technology Services India Pvt Ltd interview questions and answers","Xoriant Solutions Pvt Ltd interview questions and answers"],"articleSection":["Apache Solr"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-solr-represents-data\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-solr-represents-data\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-solr-represents-data\/","name":"How Solr represents data ? - Apache Solr Interview Questions","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"datePublished":"2021-07-12T13:57:33+00:00","dateModified":"2021-09-14T10:22:08+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"How Solr represents data ? - solr interview questions - In Apache Solr, a Document is the part of search as well as index.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/apache-solr\/how-solr-represents-data\/"]}]},{"@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":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"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:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","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\/238","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=238"}],"version-history":[{"count":3,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/238\/revisions"}],"predecessor-version":[{"id":3722,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/238\/revisions\/3722"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}