[opencms-dev] searchsettings in xsd
Daniel Seidel
d.seidel at alkacon.com
Wed Jan 4 08:19:16 CET 2017
Hi Patric,
I tried to reproduce your behavior with the demo contents in the docker
image. The blog maps a title and a date to the index:
<searchsetting element="Date" searchcontent="false">
<solrfield targetfield="newsdate" sourcefield="*_dt" />
</searchsetting>
<searchsetting element="Title" searchcontent="false">
<solrfield targetfield="disptitle" sourcefield="*_s" />
</searchsetting>
both mapping produce field {name}_en_{suffix} and {name}_de_{suffix}.
Did you configure all your locales correctly? Is the sortDate mapping
working?
Best, Daniel.
Am 03.01.2017 um 18:23 schrieb Patric Dosch:
>
> Hey list,
>
> we updated from OpenCms 9.0.1 to 10.5 and currently I have a different
> behaviour when working with searchsettings in the xsd.
>
> Normally we try to store all information we need for sorting and
> displaying in the solr index.
>
> See example for a date (to sort) or a string (to display)
>
> <*searchsetting **element**="SortDate" **searchcontent**="true"*>
> <*solrfield **targetfield**="sortDate" **sourcefield**="*_tdt" */>
> </*searchsetting*>
>
> <*searchsetting **element**="Media/Image" **searchcontent**="true"*><*solrfield **targetfield**="mediaImage" **sourcefield**="*_s"*/></*searchsetting*>
>
> In OpenCms 9.0.1 I got so many fileds in the solr document as
> locale-nodes are in the resource:
>
> <str name="mediaImage_en_s">/.images/image-en.jpg</str>
>
> <str name="mediaImage_de_DE_s">/.images/image-de.jpg</str>
>
> …
>
> but with OpenCms 10.5 in the solr index only mediaImage_en_s appears.
>
> Is someone using these settings? And have the same problem?
>
> This is currently a big problem, because all of our searches are broken.
>
> Regards, Patric
>
>
> *Patric Dosch*
> Senior Developer
>
> *Virtual Identity* AG
> Grünwälderstraße 10-14
> 79098 Freiburg
>
> t +49 761 20758-442
> f +49 761 20758-01
>
>
> patric.dosch at virtual-identity.com
> http://www.virtual-identity.com
>
> Freiburg | München | Wien
>
>
>
>
> ------------------------------------------------------------------------
>
> Virtual Identity AG
> Grünwälderstraße 10-14
> 79098 Freiburg
> Amtsgericht Freiburg, HRB 6218
> Vorstand: Ralf Heller
> Vorsitzende des Aufsichtsrates: Kirsten Heller
> Umsatzsteuer-ID: DE208002218
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
--
Daniel Seidel
-------------------
Alkacon Software GmbH & Co. KG - The OpenCms Experts
Daniel Seidel
An der Wachsfabrik 13
50996 Koeln, DE
Tel: +49 (0)2236 3826-16
Fax: +49 (0)2236 3826-20
Email: d.seidel at alkacon.com
http://www.alkacon.com
http://www.opencms.org
Amtsgericht Köln, HRA 32185, USt-IdNr.: DE259882372
Vertreten durch: Alkacon Verwaltungs GmbH
Geschäftsführer: Alexander Kandzior, Amtsgericht Köln, HRB 88218
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170104/fd7c62ed/attachment.htm>
More information about the opencms-dev
mailing list