lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcelo Iturbe <marc...@santiago.cl>
Subject DIH with XML question.
Date Tue, 29 Mar 2011 19:58:04 GMT
Hello,
I have an XML with multiple nodes with the same name.

In the data-config.xml document, I have set up:

   <field column="email" xpath="/feed/entry/email/@address" />

But this only feeds the last email address into Solr (in the case bellow,
mvera@yahoo.org appears in Solr).

The XML for each entity is as follows:

        <entry>
            <id>http://www.google.com/m8/feeds/contacts/me%40here.com/base/0
</id>
            <updated>2011-03-25T06:34:29.714Z</updated>
            <category scheme='http://schemas.google.com/g/2005#kind' term='
http://schemas.google.com/contact/2008#contact'/>
            <title type='text'>Marcelo Vera</title>
            <link rel='self' type='application/atom+xml' href='
https://www.google.com/m8/feeds/contacts/me%40here.com/full/0'/>
            <link rel='edit' type='application/atom+xml' href='
https://www.google.com/m8/feeds/contacts/me%40here.com/full/0/1301034869714001'/
>
            <gd:email rel='http://schemas.google.com/g/2005#other' address='
marcelo@here.com' primary='true'/>
            <gd:email rel='http://schemas.google.com/g/2005#home' address='
marcelo.vera@there.com'/>
            <gd:email rel='http://schemas.google.com/g/2005#other' address='
mvera@yahoo.org'/>
        </entry>

The "gd:email" node can repeat indefenate number of times, how can I feed
each value of address to Solr?

Thanks

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