[opencms-dev] Mapping OpenCMS structured content XML field to a SOLR field
    Arturo Martín Lladó 
    arturo.martin.llado at gmail.com
       
    Fri Feb 22 10:46:13 CET 2013
    
    
  
Hi, Rüdiger:
It worked perfectly as you said. Now I see the fields (as
field_LOCALE_s) and I can search filtering by exact results.
I haven't thought about de store="false" attribute of the *_exact field. Sorry.
Thanks a lot :-)
Regards,
2013/2/22 Rüdiger Kurz <r.kurz at alkacon.com>:
> 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
-- 
Arturo Martín Lladó
    
    
More information about the opencms-dev
mailing list