Real Time Indexing after updates via API

  • mcl7
    Participant
    1 year, 4 months ago #27442

    I noticed that the real time indexing works only when a manual change has been made and not when a change is made via the API. We are updating inventory and pricing and after this takes place I have to manually reindex for the changes to be seen in the results.

    Any ideas on how to best solve this?

    wpsolr
    Keymaster
    1 year, 4 months ago #27443

    Real-time indexing happens on standard WordPress filters/actions: ‘save_post’, ‘add_attachment’, ‘edit_attachment’, ‘delete_attachment’, ‘create_term’, ‘edit_term’, ‘pre_delete_term’

    If the API does not call this filters, you can still call WPSOLR’s Cron add-on API in incremental mode after each import: https://www.wpsolr.com/documentation/configuration-step-by-step-schematic/activate-extensions/cron-scheduling/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.