lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Matheis <matheis.ste...@googlemail.com>
Subject Re: Problems with DIH and missing fields.
Date Fri, 01 Apr 2011 08:27:27 GMT
Marcelo,

could you paste the relevant parts of your DIH config?

Regards
Stefan

On Thu, Mar 31, 2011 at 9:55 PM, Marcelo Iturbe <marcelo@santiago.cl> wrote:
> Hello,
> I have an XML which contains personal contacts. Not all contacts have the
> same fields (email, phone, postal).
>
> The problem is that when certain fields are NOT present,  SOLR is injecting
> the previous contacts data.
>
> For example, assume the following from the XML feed:
> <entry>
>        <title type='text'>Jane Doe</title>
>        <gd:email rel='http://schemas.google.com/g/2005#work' address='
> jane.doe@gmail.com' primary='true'/>
>        <gd:postalAddress rel='http://schemas.google.com/g/2005#home
> '>Santiago
>            Region Metropolitana
>        Chile</gd:postalAddress>
>    </entry>
>    <entry>
>        <title type='text'>Jeff Smith</title>
>        <gd:email rel='http://schemas.google.com/g/2005#work' address='
> jeff.smith@gmail.com' primary='true'/>
>    </entry>
>    <entry>
>        <title type='text'>Ana Mercurio</title>
>        <gd:phoneNumber rel='http://schemas.google.com/g/2005#mobile'
> primary='true'>+56912345678</gd:phoneNumber>
>    </entry>
>
> The second contact, will have the first contacts postal address.
> The third contact, will have Janes Postal Address and Jeffs email address:
>
> <lst>
>    <arr name="title">
>        <str>Ana Mercurio</str>
>    </arr>
>    <arr name="phoneNumber">
>        <str>+5612345678</str>
>    </arr>
>    <arr name="email">
>        <str>jeff.smith@gmail.com</str>
>    </arr>
>    <arr name="postalAddress">
>        <str>Santiago
>            Region Metropolitana
>        Chile</str>
>    </arr>
> </lst>
>
> This is how I have the fields specified in the schema.xml file:
>    <field name="email" type="string" indexed="true" stored="true"
> multiValued="true" default=" "/>
>    <field name="phoneNumber" type="string" indexed="true" stored="true"
> multiValued="true"  default=" "/>
>    <field name="postalAddress" type="string" indexed="true" stored="true"
> multiValued="true"  default=" "/>
>
> What did I miss?
>
> Thanks for your help.
>

Mime
View raw message