lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scr...@asia.com
Subject Import XML files different format?
Date Wed, 23 Jun 2010 11:59:00 GMT
Hi,

I'm new to solr. It looks great.

I would like to add a XML document in the following format in solr:

<?xml version="1.0" encoding="utf-8"?>
<race>
<go>
    <id><![CDATA[...]]></id>
    <title><![CDATA[...]]></title>
    <url><![CDATA[...]]></url>
    <content><![CDATA[...]]></content>
    <city><![CDATA[...]]></city>
    <postcode><![CDATA[...]]></postcode>
    <contract><![CDATA[...]]></contract>
    <category><![CDATA[...]]></category>
    <date><![CDATA[...]]></date>
    <time><![CDATA[...]]></time>
</go>

etc...
</race>



Is there a way to do this? If yes how?

Or i need to convert it with some scripts to this:

<add>
<doc>
   <field name="authors">Patrick Eagar</field>
   <field name="subject">Sports</field>
etc...


Thanks for your help

Regards

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message