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

Allow Hooks to add an IndexerPostProcessor to modify search summaries, queries, and indexes

    Details

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

      Description

      This improvement implements a post processing system on top of the existing indexer to allow plugin hook developers to modify the search summaries, indexes, and queries.

      To add a post processor,
      1. Begin with a hook.
      2. In liferay-hook.xml add the following:
      <indexer-post-processor>
      <indexer-model-name>com.liferay.portal.model.User</indexer-model-name>
      <indexer-post-processor-impl>com.liferay.myhook.hook.indexer.UserIndexerPostProcessor</indexer-post-processor-impl>
      </indexer-post-processor>

      Where "indexer-model-name" is the name of the model whose indexer you wish to change and "indexer-post-processor-impl" is the name of your post processor class that implements com.liferay.portal.kernel.search.IndexerPostProcessor.

        Issue Links

          Activity

          Hide
          jonas.yuan Jonas Yuan added a comment -

          nice feature, vote +1

          Show
          jonas.yuan Jonas Yuan added a comment - nice feature, vote +1

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 3 weeks, 1 day ago

                Development

                  Subcomponents