Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-52194

Solr 4 web plugin generating multiple values encountered for non multiValued field when a web content structure has an integer(or decimal,number) repeatable field inside it(multiple records are added in this repeatable field).

    Details

      Description

      1. Initialize a trunk bundle.
      2. Create a new structure "name:Integer" that contains repeatable fields of the Integer type and specify a template for the newly created structure.
      3. Add a new web content, click "+" to add two repeatable structure fields "Integer".
      4. Separately enter two value ("3" and "5") in the Integer fields.
      5. Click save, you will see the below error in log.

      com.liferay.portal.kernel.search.SearchException: ERROR: [doc=15_PORTLET_10608]
      multiple values encountered for non multiValued field ddm/10543/Integer1810_hu_H
      U_sortable: [3, 5]
              at com.liferay.portal.search.solr.SolrIndexWriter.addDocuments(SolrIndex
      Writer.java:85)
              at com.liferay.portal.search.solr.SolrIndexWriter.updateDocuments(SolrIn
      dexWriter.java:185)
              at sun.reflect.GeneratedMethodAccessor1384.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyR
      equest.java:85)
              at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receiv
      e(ProxyMessageListener.java:51)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(In
      vokerMessageListener.java:72)
              at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(Paralle
      lDestination.java:69)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._r
      unTask(ThreadPoolExecutor.java:682)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.ru
      n(ThreadPoolExecutor.java:593)
              at java.lang.Thread.run(Thread.java:745)
      

      The same issue also occured in the decimal (Double, Long, Float, Date) field of structure.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 20 weeks, 2 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M5
                  7.0.0 DXP FP14
                  7.0.0 DXP SP3
                  7.0.3 CE GA4