• Resolved boybawang

    (@boybawang)


    Hi –

    First off, thanks for such a great plugin. I’ve tested multiple search plugins and so far Relevanssi is the winner 🙂

    Here’s what I understand about index building:

    • ‘Build the index’ will wipe out the index and add all of the data to the index.
    • ‘Index unindexed posts’ does not wipe the index, but adds new posts to the index.
    1. Does ‘Index unindexed posts’ also delete from the index if posts have been deleted? In other words, does it ‘update’ the index with current post data (i.e. adding, removing, updating)?
    2. It appears that the hook relevanssi_build_index does a ‘build index’ (i.e. wiping out the index). Is there a hook for indexing unindexed posts?

    Thanks

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

    (@msaari)

    1. No, it just adds new posts. But deleted posts should not be in the index anymore, as deleting a post (using proper WordPress methods) also deletes it from the index, and when a post is updated, the index is also updated.

    2. That’s not a hook, that’s a function, and the same function is used for both purposes depending on the parameters. To do a full reindex, do

    relevanssi_build_index( false );

    To index only the unindexed posts, do:

    relevanssi_build_index( true );

    Thread Starter boybawang

    (@boybawang)

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Building index vs indexing unindex posts’ is closed to new replies.