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

Search Document Indexer.java files are directly imported into the classes, and therefore can not be overridden with xml (via ext-spring.xml or liferay-portlet.xml)

    Details

    • Branch Version/s:
      5.2.x
    • Backported to Branch:
      Committed

      Description

      One customer is doing heavy modifications in the Indexer.java files, they are customization the fields that are included in the Document files. Ideally, we would be able to extend/overwrite the Indexers via spring or by using the line in liferay-portlet.xml

      from:
      <indexer-class>com.liferay.portlet.calendar.util.Indexer</indexer-class>

      to:
      <indexer-class>com.liferay.portlet.calendar.util.CustomIndexer</indexer-class>

      But there are files which directly import the Indexer classes, so we would actually have to go into these files and change the import statements.

      DLFileEntryLocalServiceImpl.java uses the Indexer.java file for DL's. This is the same with Calendars, Wikis, MB's, JournalArticles, Bookmarks, etc..

      Is it possible to "spring-ify" (or centralize the usage of the indexer classes) this so that extending/overridding a Indexer.java file would be as simple as changing a spring configuration?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              scott.lee Scott Lee
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                11 years, 1 week, 6 days ago

                  Packages

                  Version Package
                  6.0.0 Preview
                  --Sprint 11/12
                  6.2.0 CE M2