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

[Solr indexation] Page with attachments of multiple mime-types

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.3.4, 4.4.0
    • 4.4.0
    • None
    • None
    • 4.4 M3

      I have a page with attachments of multiple mime-types and I get an error while indexing it :

      Message:		Solr client indexing error caused by the following errors: {error-class=org.apache.solr.common.SolrException,root-error-class=org.apache.solr.common.SolrException}
      Please check the Solr logs for more details.
      Location:	org.ametys.cms.search.solr.AbstractAmetysConcurrentUpdateClient.handleError(AbstractAmetysConcurrentUpdateClient.java:93)
      Thrown:
      org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8984/solr: Bad Request
      request: http://localhost:8984/solr/intranet-live/update?update.chain=noAutoCommit&wt=javabin&version=2
      Remote error message: ERROR: [doc=page://151f2461-0627-4efe-8788-3b221e2027de] multiple values encountered for non multiValued field resource-mimeTypeGroup: [image, image, image, text, pdf]
      	at org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrClient$Runner.sendUpdateStream(ConcurrentUpdateSolrClient.java:392)
      	at org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrClient$Runner.run(ConcurrentUpdateSolrClient.java:190)
      	at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:210)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:834)

      Note that this page is available on the english sitemap of demo data.

            bmaurel Bérénice Maurel
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: