Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 6.0.6 GA
-
Fix Version/s: --Sprint - SP, 6.1.0 CE RC1
-
Component/s: Frameworks > Search
-
Labels:None
-
Branch Version/s:6.0.x
-
Backported to Branch:Committed
-
Similar Issues:
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.

nice feature, vote +1