• Hi there,

    We’re using your plugin in combination with the Stocky Theme to search through downloadable images.
    Now i have the feeling Relevanssi doesn’t update the index automatically when new posts (downloads) are added.
    Is this expected behaviour or am i missing an option here?

    Regards, Ed’

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Depends on how the posts are added. If adding the posts skips the wp_insert_post filter hook for some reason, Relevanssi won’t notice the new posts. That sometimes happens when bulk adding posts somehow.

    If that’s the case, you probably need to set up a cron job to do the indexing for you. Instructions can be found here: https://www.relevanssi.com/knowledge-base/indexing-cron-job/

    Thread Starter eddiebouncer

    (@eddiebouncer)

    Hi Mikko,

    thanks for the reply. Do you have info on how i would implement ‘relevanssi_build_index(false, false, X);’ in a cronjob serverside? I can use a wget and set the time to run at night, but not sure whát to run.

    Cheers, Ed’

    Plugin Author Mikko Saari

    (@msaari)

    Running WP functions with cron is easiest when done with WP Cron: https://developer.www.ads-software.com/plugins/cron/

    WP Cron is slightly less reliable than regular cron, but to make sure WP Cron runs at night, you can then set up a regular cronjob that wgets your site front page at the desired time in the night.

    With Relevanssi Premium, this would be easy, as you could make cron run the WP CLI command wp relevanssi index.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘rebuild index’ is closed to new replies.