Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-11850

Allow to define other languages in Solr schema

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.8.0
    • 4.7.6
    • Solr
    • None
    • 4.8.0 M7

      Here is my languages.xml file

      <languages>
          <language code="fr" i18n="true">plugin.cms:PLUGINS_CMS_LANGUAGES_LABEL_FR</language>
          <language code="en" i18n="true">plugin.cms:PLUGINS_CMS_LANGUAGES_LABEL_EN</language>
          <language code="es" i18n="true">plugin.cms:PLUGINS_CMS_LANGUAGES_LABEL_ES</language>
          <language code="it" i18n="true">plugin.cms:PLUGINS_CMS_LANGUAGES_LABEL_IT</language>
          <language code="pt" i18n="true">plugin.cms:PLUGINS_CMS_LANGUAGES_LABEL_PT</language>
          <language code="rm" i18n="true">plugin.cms:PLUGINS_CMS_LANGUAGES_LABEL_RM</language>
      </languages>
      

      I have errors in solr

      2024-01-15 09:02:20.860 ERROR (qtp380812044-21) [ametys-upau-std-default] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: ERROR: [doc=resource://26104b48-c32d-4be9-958c-3a080140e64c] unknown field 'systemFull_rm' => org.apache.solr.common.SolrException: ERROR: [doc=resource://26104b48-c32d-4be9-958c-3a080140e64c] unknown field 'systemFull_rm'
              at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:255)
      org.apache.solr.common.SolrException: ERROR: [doc=resource://26104b48-c32d-4be9-958c-3a080140e64c] unknown field 'systemFull_rm'
              at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:255) ~[?:?]
              at org.apache.solr.update.AddUpdateCommand.makeLuceneDocs(AddUpdateCommand.java:213) ~[?:?]
              at org.apache.solr.update.DirectUpdateHandler2.updateDocOrDocValues(DirectUpdateHandler2.java:1041) ~[?:?]
              at org.apache.solr.update.DirectUpdateHandler2.doNormalUpdate(DirectUpdateHandler2.java:416) ~[?:?]
              at org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:369) ~[?:?]
              at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:300) ~[?:?]
              at org.apache.solr.update.processor.RunUpdateProcessorFactory$RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:71) ~[?:?]
              at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:55) ~[?:?]
              at org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:267) ~[?:?]
              at org.apache.solr.update.processor.DistributedUpdateProcessor.doVersionAdd(DistributedUpdateProcessor.java:542) ~[?:?]
              at org.apache.solr.update.processor.DistributedUpdateProcessor.lambda$versionAdd$0(DistributedUpdateProcessor.java:354) ~[?:?]
              at org.apache.solr.update.VersionBucket.runWithLock(VersionBucket.java:49) ~[?:?]
              at org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:351) ~[?:?]
              at org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:233) ~[?:?]
              at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:55) ~[?:?]
              at org.ametys.solr.update.IgnoreAutoCommitUpdateProcessor.processAdd(IgnoreAutoCommitUpdateProcessor.java:48) ~[?:?]
              at org.apache.solr.handler.loader.JavabinLoader$1.update(JavabinLoader.java:123) ~[?:?]
              at 
      
      
      

          [CMS-11850] Allow to define other languages in Solr schema

          Laurence Perier made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Bérénice Maurel made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Available for review [ 10005 ] New: Resolved [ 5 ]
          Bérénice Maurel made changes -
          Fix Version/s Original: 4.7.8 [ 18385 ]
          Cédric Damioli made changes -
          Assignee Original: Cédric Damioli [ cedric ] New: Bérénice Maurel [ bmaurel ]
          Cédric Damioli made changes -
          Summary Original: Solr indexing generates errors when defining a language "ro" New: Allow to define other languages in Solr schema
          Laurence Aumeunier made changes -
          Fix Version/s New: 4.7.8 [ 18385 ]
          Fix Version/s Original: 4.7.7 [ 18185 ]
          Bérénice Maurel made changes -
          Rank New: Ranked lower
          Bérénice Maurel made changes -
          Assignee Original: Bérénice Maurel [ bmaurel ] New: Cédric Damioli [ cedric ]
          Bérénice Maurel made changes -
          Status Original: Open [ 1 ] New: Available for review [ 10005 ]
          Bérénice Maurel made changes -
          Status Original: In Progress [ 3 ] New: Open [ 1 ]

            bmaurel Bérénice Maurel
            lperier Laurence Perier
            Bérénice Maurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: