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

[Backend] Migrate ContentLengthIndexerPostProcessor to ModelDocumentContributor

    Details

    • Branch Version/s:
      7.3.x
    • Backported to Branch:
      Committed
    • Epic/Theme:

      Description

      Changes of LPS-145828 were accidentally committed under this (LPS-145881) ticket.


      Problem

      Relating to test error reported in https://issues.liferay.com/browse/LPS-145831 and the test itself https://github.com/liferay/liferay-portal/blob/master/modules/apps/portal-search/portal-search-test/src/testIntegration/java/com/liferay/portal/search/indexer/test/IndexerPostProcessorRegistryTest.java indexer post processors should not to be shipped with the platform.

      Negative Consequences

      Test errors in various modules (see linked).

      Acceptance Criteria

      1. IPP tests are passing
      2. Migrate the logic of ContentLengthIndexerPostProcessor to be a ModelDocumentContributor in portal-search Introduced in LPS-145828
      3. Delete ContentLengthIndexerPostProcessor
      4. Add wiki "versionCount" in WikiPageIndexer Done in LPS-145828
      5. Add document library "versionCournt" in DLFileEntryModelDocumentContributor Done in LPS-145828
      6. Add Journal article "versionCount" in JournalArticleIndexerPostProcessor Done in LPS-145828

      Technical Notes

      ContentLengthIndexerPostProcessor relies on the the "content" field and it obtains it from the Document. As the order in which *ModelDocumentContributor/s are processed is not fixed, this has to be considered when refactoring.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              team-search Product Team Search
              Reporter:
              petteri.karttunen Petteri Karttunen
              Recent user:
              Brian Lee
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.3.X