Hi, 

I am trying to index XML files using SolrJ. The original XML file contains 
nested elements. For example, the following is the snippet of the XML file. 
<entry>
      <name>SOMETHING </name>
      <facility>SOME_OTHER_THING</facility>
 </entry>

I have added the elements "name" and "facility" in Schema.xml file to make 
these elements indexable. I have changed the XML document above to look like - 

<add>
<doc>
 ......
 <field name="name">SOMETHING</field> 
 ......
</doc>
</add>

 I am getting the following error when I start Jetty - 

"org.apache.solr.common.SolrException: 
ERROR_5457843_multiple_values_encountered_for_non_multiValued_field_facility___trackless____trackless_"

Can anyone please let me know if there is something I am doing wrong ? 

How can I maintain the parent-child relationship of the original XML file in 
the modified XML file?  Can I not use the original XML file as it is for 
indexing purposes? 

Thanks in advance. 

- Chaitali 



      

Reply via email to