The component that writes out the values do not know if it is multivalued or not. So if it finds only a single value it writes it out as such
On Thu, Oct 16, 2008 at 10:52 PM, oleg_gnatovskiy <[EMAIL PROTECTED]> wrote: > > Hello. I have an index built in Solr with several multi-value fields. When > the multi-value field has only one value for a document, the XML returned > looks like this: > <arr name="someIds"> > <long name="someIds">5693</long> > </arr> > However, when there are multiple values for the field, the XMl looks like > this: > arr name="someIds"> > <long>11199</long> > <long>1722</long> > </arr> > Is there a reason for this difference? Also, how does faceting work with > multi-valued fields? It seems that I sometimes get facet results from > multi-valued fields, and sometimes I don't. > > Thanks. > -- > View this message in context: > http://www.nabble.com/Different-XML-format-for-multi-valued-fields--tp20015951p20015951.html > Sent from the Solr - User mailing list archive at Nabble.com. > > -- --Noble Paul