<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Adding new field to the schema.xml in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Adding-new-field-to-the-schema-xml/m-p/60184#M19315</link>
    <description>You shouldn't have to reindex the whole set of documents, unless you need that new field to be added to those existing documents. New documents that have that field would be searchable with that field, but older documents would not be returned.&lt;BR /&gt;&lt;BR /&gt;Reindexing would consist of removing the existing documents in the solr collection, and re running your indexing application (MRIT, solrj etc) to index all the original documents again. Alternatively you could have a solrj application that reads the old documents and adds the value to the document for the newly created field.&lt;BR /&gt;&lt;BR /&gt;Of course, you should test this in a QA environment to confirm the desired behavior.&lt;BR /&gt;-pd</description>
    <pubDate>Wed, 20 Sep 2017 19:30:02 GMT</pubDate>
    <dc:creator>pdvorak</dc:creator>
    <dc:date>2017-09-20T19:30:02Z</dc:date>
    <item>
      <title>Adding new field to the schema.xml</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Adding-new-field-to-the-schema-xml/m-p/60019#M19314</link>
      <description>&lt;P&gt;I like to add new field to the existing document which have 1 million records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I doesn't want&amp;nbsp;to lose the exiting documents.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sample exiting doucment:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;id : 123&lt;/P&gt;&lt;P&gt;field1 : 'sample1' &amp;nbsp; &amp;nbsp; &amp;nbsp;---------------- indexed&lt;/P&gt;&lt;P&gt;filed2 : 'sample 2' &amp;nbsp; &amp;nbsp;-------------------- stored&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to add new field to the schema.xml which is only stored attribute and its not need to be indexed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;field name="field3" type="string" indexed="false" stored="true" required="false" multiValued="false"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know like this can be achived with the solrctl reload option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But my doubt is after adding new field. is it neccessary&amp;nbsp;to reindex whole documents?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is reindex?&lt;/P&gt;&lt;P&gt;My understanding is again I have to load data to solr.and I don't have backup of these data anywhere&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help me on this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:15:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Adding-new-field-to-the-schema-xml/m-p/60019#M19314</guid>
      <dc:creator>ganeshkumarj</dc:creator>
      <dc:date>2022-09-16T12:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new field to the schema.xml</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Adding-new-field-to-the-schema-xml/m-p/60184#M19315</link>
      <description>You shouldn't have to reindex the whole set of documents, unless you need that new field to be added to those existing documents. New documents that have that field would be searchable with that field, but older documents would not be returned.&lt;BR /&gt;&lt;BR /&gt;Reindexing would consist of removing the existing documents in the solr collection, and re running your indexing application (MRIT, solrj etc) to index all the original documents again. Alternatively you could have a solrj application that reads the old documents and adds the value to the document for the newly created field.&lt;BR /&gt;&lt;BR /&gt;Of course, you should test this in a QA environment to confirm the desired behavior.&lt;BR /&gt;-pd</description>
      <pubDate>Wed, 20 Sep 2017 19:30:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Adding-new-field-to-the-schema-xml/m-p/60184#M19315</guid>
      <dc:creator>pdvorak</dc:creator>
      <dc:date>2017-09-20T19:30:02Z</dc:date>
    </item>
  </channel>
</rss>

