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

Field reference must be used instead of field name when indexing ddmFieldName

    Details

      Description

      Introduction:
      Since field names are now hidden from the UI, users should use field references whenever they can to search for documents in the search engine.

      Steps to reproduce:

      1. Go to Content & Data > Web Content and click on the Structures tab;
      2. Click to add a new structure;
      3. Add a text field and, in its advanced settings, change the field reference to any name you prefer;
      4. Save the structure;
      5. Go back to the Web Content tab and click to create a new content based on the structure just created;
      6. Fill the title, content and publish it;
      7. Search your search engine index for documents with entryClassName equals to "com.liferay.journal.model.JournalArticle" (if you're using Elasticsearch, you can use elasticsearch-head for an easy visualization of the index).

      Actual result:
      Documents having the following field where its ddmFieldName is composed by field's name (no more available in the UI):

      "ddmFieldArray": [
          {
              "ddmFieldName": "ddm__keyword__31917__Text54132543_en_US",
              "ddmFieldValueKeyword_en_US": "test text",
              "ddmFieldValueKeyword_en_US_String_sortable": "test text",
              "ddmValueFieldName": "ddmFieldValueKeyword_en_US"
          }
      ],
      

      Expected result:
      Documents having the following field where its ddmFieldName is composed by field's reference (available in the UI since 7.3 FP1):

      "ddmFieldArray": [
          {
              "ddmFieldName": "ddm__keyword__31917__MyCustomText_en_US",
              "ddmFieldValueKeyword_en_US": "test text",
              "ddmFieldValueKeyword_en_US_String_sortable": "test text",
              "ddmValueFieldName": "ddmFieldValueKeyword_en_US"
          }
      ],
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              rodrigo.paulino Rodrigo Paulino
              Participants of an Issue:
              Recent user:
              Sophia Zhang
              Engineering Assignee:
              Rodrigo Paulino
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                34 weeks, 3 days ago

                  Packages

                  Version Package
                  7.4.0 CE GA1 DXP 7,4
                  7.4.2 CE GA3 DXP 7,4
                  7.4.13 DXP GA1
                  Master