[opencms-dev] How to store a multi-occurency xmlcontent value in Solr ?

Rüdiger Kurz r.kurz at alkacon.com
Mon Dec 10 15:35:52 CET 2012


Hi,

this question has been ask before, please have a look at the post 
titled: "SOLR Multi-field Settings".

The support for 'multivalued' fields is committed to github already:
https://github.com/alkacon/opencms-core/commit/f0948e31814da7020a319c8a4c6e911f5ce14ff3

regards Rüdiger

Am 10.12.2012 12:11, schrieb Siegfried Ehret:
> Hi,
> I have the following field in my xmlcontent:
> <xsd:element name="RangeFile" type="OpenCmsVfsFile" minOccurs="0" maxOccurs="unbounded" />
> I have 2 values for this field in my xmlcontent (/path/to/range1 and /path/to/range2)
>
> My Solr Field is :
> <searchsetting element="RangeFile" searchcontent="true">
>    <solrfield targetfield="RangeFile" />
> </searchsetting>
>
> When I look in the index, only the first value is saved.
>
> How to store this multi-occurenced field ?
>
> Thanks
>

-- 
Kind Regards,
Rüdiger.

-------------------

Rüdiger Kurz

Alkacon Software GmbH  - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org



More information about the opencms-dev mailing list