Hi Tamanjit,

Not really :-).

**phones** is an multiValued. Usually solr will produce list of array of
values without naming each row something like this
<doc>
 <str name="fname">Micheal</str>
 <str name="lname">Schumacher</str>
 <arr name="phones">
    <str>090933434343</str>
    <str>052323232323</str>
    <str>073628362782</str>
 </arr>
</doc>

I wanted to be this way.
<doc>
 <str name="fname">Micheal</str>
 <str name="lname">Schumacher</str>
 <arr name="phones">
    <str name="mobile">090933434343</str>
    <str name="home">052323232323</str>
    <str name="office">073628362782</str>
 </arr>
</doc>



tamanjit.bin...@yahoo.co.in wrote
> So your doc would look something like this:
> <doc>
>  
> <str name="fname">
> Micheal
> </str>
>  
> <str name="lname">
> Schumacher
> </str>
> <str name="mobile">
> 090933434343
> </str>
> <str name="home">
> 052323232323
> </str>
> <str name="office">
> 073628362782
> </str>
>  
> <arr name="phones">
>     
> <str>
> 090933434343
> </str>
>     
> <str>
> 052323232323
> </str>
>     
> <str>
> 073628362782
> </str>
>  
> </arr>
> </doc>


tamanjit.bin...@yahoo.co.in wrote
> So your doc would look something like this:
> <doc>
>  
> <str name="fname">
> Micheal
> </str>
>  
> <str name="lname">
> Schumacher
> </str>
> <str name="mobile">
> 090933434343
> </str>
> <str name="home">
> 052323232323
> </str>
> <str name="office">
> 073628362782
> </str>
>  
> <arr name="phones">
>     
> <str>
> 090933434343
> </str>
>     
> <str>
> 052323232323
> </str>
>     
> <str>
> 073628362782
> </str>
>  
> </arr>
> </doc>


tamanjit.bin...@yahoo.co.in wrote
> So your doc would look something like this:
> <doc>
>  
> <str name="fname">
> Micheal
> </str>
>  
> <str name="lname">
> Schumacher
> </str>
> <str name="mobile">
> 090933434343
> </str>
> <str name="home">
> 052323232323
> </str>
> <str name="office">
> 073628362782
> </str>
>  
> <arr name="phones">
>     
> <str>
> 090933434343
> </str>
>     
> <str>
> 052323232323
> </str>
>     
> <str>
> 073628362782
> </str>
>  
> </arr>
> </doc>





--
View this message in context: 
http://lucene.472066.n3.nabble.com/multiValued-How-do-I-specify-name-to-each-value-returned-by-multiValue-field-tp4083922p4084149.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to