Copied to clipboard

Flag this post as spam?

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


  • Chris 9 posts 90 karma points
    Mar 18, 2020 @ 15:54
    Chris
    0

    PDF Indexer: programmatically add a PDF Media item to the index

    Hi,

    I'm using Umbraco 7 and Examine PDF Indexer 1.0.2.

    We have some code to remove a PDF node from the index when all content linking to it is unpublished (using DeleteFromIndex()). That's nice and easy as it used the node id.

    However when we republish we also need to reindex, and I have no idea how to trigger that. The ReIndexNode seems to require the XML to add to the index, but as that contains the extracted PDF content I'm not sure how to generate it.

    Is there a simple way to trigger a reindex of a Media item by node Id?

    Thanks Chris

Please Sign in or register to post replies

Write your reply to:

Draft