Support » Plugin: Relevanssi - A Better Search » [Plugin: Relevanssi – A Better Search] Exclude these posts/pages from search problem

  • Resolved nhowarth


    I have been using Relevanssi for some time now and it has been working fine.

    But a couple of days ago I added a new page to by blog. – and added its ID to “Exclude these posts/pages from search” and rebuilt the index. (I also have the Indexing Options to ‘just posts’).

    However, the page appears in the search results.

    I have emptied my main cache, I use Quick Cache, and set the caching expiry in Relevansii to 1 second.

    Any thoughts what may be casing this?



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


    Does the page appear if you disable Relevanssi caching completely?

    In any case, if you have “Just posts” set, the page shouldn’t be in the index in the first place. Sounds like there’s bug somewhere.

    Plugin Author Mikko Saari


    Quick initial testing on my system says the “Just posts” works and drops the pages off the index. Excluding pages with the exclusion option works as well.

    Hi msaari – thanks for getting back to me so quickly.

    I’ve turned off the Relevanssi cache, saved the setting and rebuilt the index – and cleared my site cache, but the post still appears in the search results.

    In fact I have previously included other page IDs in “Exclude these posts/pages from search” to prevent them from displaying in search results – even though I have “Just posts” set.

    Plugin Author Mikko Saari


    I’m sorry, but I have no idea what could cause the pages to be indexed even though “just posts” is set. They shouldn’t be, and on my sites this setting works just as it should.

    Hi msaari – I found the problem – it was my fault.

    I was trying to limit the number of search results appearing on a page to 10 and included <?php query_posts($query_string."&showposts=10") ?> in search.php.

    This had the effect of completely ignoring Relevanssi’s search results. Now that I have removed the statement, everything is working OK.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Relevanssi – A Better Search] Exclude these posts/pages from search problem’ is closed to new replies.