Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Damion 96 posts 331 karma points
    Oct 04, 2023 @ 16:37
    Damion
    0

    Using a custom index to index items saved in wwwroot

    Following the steps here https://docs.umbraco.com/umbraco-cms/reference/searching/examine/indexing I created a custom index which I can see in back office.

    I need to use that index to index items saved under wwwroot/myFolder.

    What I had tried was creating custom code which is invoked on the indexProvider.IndexOperationComplete event handler. This does work - sort of. The problem with it is that it runs after every item that gets indexed in the custom code that it invokes.

    I tried to count the number of items in the folder and stop the process when it had ran that many times, again it sort of worked but is inconsistent.

    Is there a way to 'point' custom indexes to the area you want it to look for things to index, so that when rebuild index is clicked it picks them up and indexes them without any custom code needed?

Please Sign in or register to post replies

Write your reply to:

Draft