Re: Different XML format for multi-valued fields?
: the multi-value field has only one value for a document, the XML returned : looks like this: : : 5693 : I think you are mistaken. it will either look like this... 5693 ...or it will look like this... 5693 ...depending on what the value of the "version" param is in your request, but it won't redundently output "someIds" version=2.0 ... no value is used if there is only one value version=2.1 ... for all multivalue fields, even if only one value version=2.2 ... responseHeader format changed to standard tag : 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. i'm not sure i understand what exactly your question is ... you need to give us more info to go on (ie: what the and looks like, what request params you are using, what you are getting back in the response, a description of what you've indexed, etc...) -Hoss
Re: Different XML format for multi-valued fields?
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: > > 5693 > > However, when there are multiple values for the field, the XMl looks like > this: > arr name="someIds"> > 11199 > 1722 > > 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
Different XML format for multi-valued fields?
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: 5693 However, when there are multiple values for the field, the XMl looks like this: arr name="someIds"> 11199 1722 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.