Copied to clipboard

Flag this post as spam?

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


  • Simon Miller 13 posts 36 karma points
    Jan 24, 2017 @ 06:14
    Simon Miller
    0

    Custom Examine index error handling: GetAllData() when exceptions are thrown erases the index

    Hi all,

    As the title says, I have a custom Examine index that is populated from an external API.

    If the external API is down or has problems (determined by a try-catch inside the GetAllData() method) and I throw an exception, it does NOT halt the update of the index. It is zero'd out and the website search results return nothing.

    I would want the search to continue using the last good index.

    Is there any way to tell the simple data service to stop in its tracks?

    Cheers Simon

Please Sign in or register to post replies

Write your reply to:

Draft