I'm pretty sure that Solr only checks whether a field is multivalued at
the point at which it receives the second value for a specific field. In
your <arr> entry below, you only provided one value, so Solr wouldn't
complain. Add another <str> line to your <arr>, and I bet you it will
moan at you.

Upayavira

On Wed, Nov 14, 2012, at 09:17 AM, Peter Kirk wrote:
> Hi
> 
> Thanks for the reply. It is strange, because when I index to a field
> defined like:
> 
>     <dynamicField indexed="true"
>                   name="*_string"
>                   stored="true"
>                   type="string" />
> 
> Then the results I receive are like:
> 
> <arr name="category_string"> 
>   <str>Woodland</str> 
> </arr>
> 
> Which seems to indicate a multivalued field.
> 
> If I change the field definition, so I explicitly say multivalued is
> false:
> 
>     <dynamicField indexed="true"
>                   name="*_string"
>                   stored="true"
>                   type="string" 
>                   multivalued="false" />
> 
> Then the result is like:
> 
> <str name="category_string">Woodland</str>
> 
> 
> /Peter
> 
> 
> 
> -----Original Message-----
> From: Jeevanandam Madanagopal [mailto:je...@myjeeva.com] 
> Sent: 14. november 2012 10:11
> To: solr-user@lucene.apache.org
> Subject: Re: Multivalued or not
> 
> Hello Peter -
> 
> In Solr 3.6 multiValued is false by default.
> 
> Since Schema version 1.1 onwards multiValued attribute value is false by
> default (<field ...>, <dynamicField ...>, <fieldType ...>)
> 
> -Jeeva
> Blog: http://www.myjeeva.com 
> 
> 
> On Nov 14, 2012, at 2:04 PM, Peter Kirk <p...@alpha-solutions.dk> wrote:
> 
> > Hi
> > 
> > In Solr 3.6, is multivalued for fields, default true or false?
> > 
> > It appears that it is default false for normal fields, and default true for 
> > dynamic fields - is that correct?
> > 
> > Thanks,
> > Peter
> > 
> > 
> > 
> 
> 

Reply via email to