lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jimtronic <jimtro...@gmail.com>
Subject Re: Concatenate multivalued DIH fields
Date Thu, 28 Apr 2011 16:53:42 GMT
I solved this problem using the flatten="true" attribute.

Given this schema
<people>
 <person>
  <names>
   <name>
    <firstName>Joe</firstName>
    <lastName>Smith</firstName>
   </name>
  </names>
 </person>
</people>

<field column="attr_names" xpath="/people/person/names/name" flatten="true"
/>

attr_names is a multiValued field in my schema.xml. The flatten attribute
tells solr to take all the text from the specified node and below.



--
View this message in context: http://lucene.472066.n3.nabble.com/Concatenate-multivalued-DIH-fields-tp2749988p2875435.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message