Trying to add some fields to ExternalIndex and populate them using a custom populator...
t
Using Umbraco 13, I can't find any examples of how to actually do that. I've tried creating a valuesetbuilder, a configureOptions, populator and a notificationhandler. however, whenever I come into my Populator it gets a list of 0 indexes. If I look in the Umbraco code, there's a row with: _logger.LogDebug($"{nameof(PopulateIndexes)} called with no indexes to populate. Typically means no index is registered with this populator."); So my problem seems to be that I can't figure out how to connect my custom populator with the ExternalIndex. Can someone please explain to me how that is done? 🙂
t
maybe I read the documentation wrong, but I thought I wasn't supposed to be using events etc anymore, only the notificationshandler? Maybe I need to try the events way I guess...
j
If you want to do it from a notification there is an example at the top of my blogpost here: https://dev.to/jemayn/the-problem-of-referenced-content-in-examine-indexing-umbraco-11-4355
t
Seams the concensus is that I need to use the TransformingIndexValues event, and I've missread the documentation. I thought I could just use a populator for the externalindex, but I guess that's only for new indexes then...
106 Views