Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter nolaflash

    (@nolaflashcom)

    Have sorted the re-indexing question by examining Relevanssi code. For others who need to trigger a re-index programmatically use the following in your plugin or functions.php with the conditions under which you desire a re-index.

    if (function_exists('relevanssi_build_index')) {
         relevanssi_build_index();	
    }
    • This reply was modified 6 years, 8 months ago by nolaflash.
    Plugin Author Mikko Saari

    (@msaari)

    Yes, reindexing works that way, but it has some gotchas, so you better know what you’re doing there. Depending on what you’re trying to achieve, there may be other, better ways to do with it. In general Relevanssi index doesn’t need rebuilding; if you’re importing data, then yes, you may need to reindex, but in those cases it may be a better idea just to index the new data, and not everything.

    To get categories as search results, you need Relevanssi Premium, you can’t get categories or other taxonomy terms as search results with the free version of Relevanssi.

    Thread Starter nolaflash

    (@nolaflashcom)

    Thank you for the reply! Yes, the need for re-indexing is due to import of external feeds as custom posts.

    I will let client know re Category links.

    Thank you very much for the excellent plugin and for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Category Name as a Search Result’ is closed to new replies.