[opencms-dev] searchsettings in xsd

Patric Dosch patric.dosch at virtual-identity.com
Wed Jan 4 13:38:53 CET 2017


Oh! Oh... Can you tell when 10.5.1 is released?
Should I add a bug-report or is it already fixed?

Thanks for your help!

Regards, Patric



Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Daniel Seidel
Gesendet: Mittwoch, 4. Januar 2017 12:59
An: opencms-dev at opencms.org
Betreff: Re: [opencms-dev] searchsettings in xsd


Hi Patric,

I found the problem. It's actually a bug, that will be fixed in OpenCms 10.5.1 (coming soon).

The problem appears when you have a locale with country code. So you should get en, de, zh and ja correctly, but not de_DE etc.

Best, Daniel.


Am 04.01.2017 um 10:12 schrieb Patric Dosch:
Hi Daniel and happy new year :)

Thanks for your replay.
I am glad that it should work as I think it and works on your docker image.

>> Did you configure all your locales correctly?
What is correct?
I have two examples:
/.content/story/ => content for detail-page content, all locales edited in one resource. locale-available: en,de_DE,zh_CN,ja_JP - no locale property. Never set, since there are only the contents.

Locales in opencms-system.xml
<localesconfigured>
      <locale>en</locale>
      <locale>de_DE</locale>
      <locale>de</locale>
      <locale>zh_CN</locale>
      <locale>zh</locale>
      <locale>ja_JP</locale>
      <locale>ja</locale>
</localesconfigured>
<localesdefault>
      <locale>en</locale>
</localesdefault>


/de/press/ locale: de_DE and locale-available: de_DE
Old-fashioned content-type (no container page) and siblings to the other locales in different folder => /en/press/. Same problem while indexing :(

>> Is the sortDate mapping working?
No... the same as mediaImage example, only the en-version is indexed.


We updated our 9.0.1. installation, maybe there could be something wrong?
But I did not found major changes in the schema.xml. The configs are placed under /WEB-INF/solr/configsets/default/conf/ - but I think that is all correct.
No error or something in the log-files :(

Do you have an idea, what is wrong?

Regards, Patric


Von: opencms-dev-bounces at opencms.org<mailto:s at opencms.org> [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Daniel Seidel
Gesendet: Mittwoch, 4. Januar 2017 08:19
An: opencms-dev at opencms.org<mailto:opencms-dev at opencms.org>
Betreff: Re: [opencms-dev] searchsettings in xsd


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




_______________________________________________

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<mailto: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/e21c37c2/attachment.htm>


More information about the opencms-dev mailing list