[opencms-dev] SOLR Multi-field Settings

John James Valentine jjvalent at gmail.com
Tue Nov 13 16:57:10 CET 2012


Does anyone have an example on how to use a multifield with solr and the new
search settings in an XML Content XSD file on OpenCms 8.5?

 

An example use case would be an author for a news story, there may be
multiple authors and we would want solr to index all the 

authors for that XML content.  

 

Here is the search settings from the XSD:

 

<searchsettings>

                    <searchsetting element="Author" searchcontent="true">

                                         <solrfield targetfield="Author"
sourcefield="*_txt" copyfields="*" />

                    </searchsetting>

</searchsettings>

 

The solr field Author_en_txt has been indexed:

 

<arr name="Author_en_txt">

<str>My Indexed Author</str>

</arr>

 

We would expect :

 

<arr name="Author_en_txt">

<str>My Indexed Author</str>

<str>Another Indexed Author</str>

</arr>

 

Thanks so much, 

 

John Valentine

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20121113/e31a9b37/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6073 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20121113/e31a9b37/attachment.bin>


More information about the opencms-dev mailing list