lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noble Paul നോബിള്‍ नोब्ळ् <noble.p...@corp.aol.com>
Subject Re: odd DIH $docBoost/multiValued="true" issue
Date Wed, 28 Oct 2009 10:51:17 GMT
It is the behavior of the xml parser.  if the field is multiValued, the
value is always a List<String>.

in the field you may explicitly mention
 <field column="$docBoost" xpath="/doc/@boost" multiValued="false"/>
this will override the schema setting

On Wed, Oct 28, 2009 at 4:11 PM, Erik Hatcher <erik.hatcher@gmail.com> wrote:
> I've got a situation where I'm bringing in a document boost factor from some
> XML (which comes from another entity in the DIH pipeline).  It maps in like
> this:
>
>   <field column="$docBoost" xpath="/doc/@boost"/>
>
> I got a parse exception (in DocBuilder where it parses $docBoost) because
> the value is an array.  I do have a catch-all in my schema:
>
>     <dynamicField name="*" type="string" multiValued="true" />
>
> When I set multiValued to false, it all worked fine.
>
> Thoughts?
>
> Thanks,
>        Erik
>
>



-- 
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com

Mime
View raw message