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

When using solr-web com.liferay.portal.kernel.search.Document getValues response always returns an array of a single element

    Details

      Description

      Consider the following doc response from solr:

      <doc>
      <arr name="companyId"><str>10114</str></arr>
      <str name="content">Test</str>
      <arr name="entryClassName"><str>com.liferay.portlet.journal.model.JournalArticle</str></arr>
      <arr name="entryClassPK"><str>10214</str></arr>
      <arr name="groupId"><str>10138</str></arr>
      <arr name="groupRoleId"><str>10138-10126</str></arr>
      <arr name="modified"><str>20110929172200</str></arr>
      <arr name="portletId"><str>15</str></arr>
      <arr name="roleId"><str>10121</str><str>10122</str></arr>
      <arr name="rootEntryClassPK"><str>10216</str></arr>
      <str name="title">Test</str>
      <arr name="type"><str>general</str></arr>
      <str name="uid">15_PORTLET_10138_FIELD_10214</str>
      <arr name="userId"><str>10146</str></arr>
      <str name="version">1.0</str>
      </doc>

      document.getValues("roleId") should return an array of two elements but it's returning an array of a single element

        Attachments

          Activity

            People

            Assignee:
            marcellus.tavares Marcellus Tavares
            Reporter:
            marcellus.tavares Marcellus Tavares
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              9 years, 9 weeks, 5 days ago

                Packages

                Version Package
                5.2.X EE