Click here to Skip to main content
15,888,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Here is my xml file content.

XML
<?xml version="1.0" encoding="UTF-8" ?>

   <add>
     <doc>
       <field name="id">1</field>
       <field name="name">Atomic Counters</field>
       <field name="type">Accelerated Parallel Process</field>
       <field name="level">Beginner</field>

       <field name="Discription">If you use the method described above, only the "employee" element can use the specified complex type. Note that the child elements, "firstname" and "lastname", are surrounded by the </field>

       <field name="myname">#1.0#1.1#1.2</field>
       <field name="version">1.1</field>
       <field name="date">1995-12-31T23:59:59Z</field>
       <field name="download1_link">http://en.wikipedia.org/wiki/Documentation</field>
       <field name="download2_link">http://en.wikipedia.org/wiki/Documentation</field>


     </doc>
   </add>


Also before this I have already added few lines in solr\example\solr\collection1\conf\schema.xml file

XML
<field name="download_link" type="text_general" indexed="true" stored="true" multiValued="true"/>
   <field name="download2_link" type="text_general" indexed="true" stored="true" multiValued="true"/>

   <field name="version" type="string" indexed="true" stored="true"/>
   <field name="open_cl" type="string" indexed="true" stored="true"/>
   <field name="level" type="string" indexed="true" stored="true"/>
   <field name="type" type="string" indexed="true" stored="true"/>


Can anyone please assist me in this..
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900