Where I can find any tutorial or instructions to build a plugin which handles "onPrepareFinderContent" ?
I've added some extra fields to com_content articles and I would like them to be indexed by the Finder engine.
I'm looking for a way to add a new element to the FinderIndexerResult
object that is going to be indexed.
I've seen this line of code in plugins/finder/content/content.php at line 311:
// Get content extras.
FinderIndexerHelper::getContentExtras($item);
The FinderIndexerHelper::getContentExtras function accepts the FinderIndexerResult object which is going to be indexed and then trigger an "onPrepareFinderContent" event, which (I suppose) allows 3dparty plugin to add or modify the content that is going to be indexed.
Some of you has any experience on this or can point me to some good tutorial/documentation?