[opencms-dev] Mapping OpenCMS structured content XML field to a SOLR field

Rüdiger Kurz r.kurz at alkacon.com
Fri Feb 22 10:24:20 CET 2013


Hi,

Am 22.02.2013 10:07, schrieb Arturo Martín Lladó:
> 		<searchsetting element="tipoContrato" searchcontent="true">
>                      <solrfield targetfield="tipoContrato"
> sourcefield="*_exact"/>
>                  </searchsetting>
>
> After publishing the XSD, restarting Tomcat, touching the related
> files (rewriting content) and rebuilding the Solr index, the fields
> tipoContrato_es_exact and tipoContrato_ca_exact are not shown in the
> XML result. Am I missing something here? Do I need to configure something else in
> Solr's schema.xml?

The field *_exact is not stored, as you can see in the schema.xml. This 
means the field is searchable but not displayable. Using the dynamic 
field *_s will create fields like tipoContrato_es_s, that are stored and 
therefore part of the resulting documents.

regards
Rüdiger

-- 
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