Forums

Relevanssi - A Better Search
[resolved] Stop Listing Page Revisions (9 posts)

  1. letheos
    Member
    Posted 11 months ago #

    This plugin lists in the search results all the page revisions I have. Is there a way to change this behavior?

  2. msaari
    Member
    Posted 11 months ago #

    It shouldn't. Something unusual in your setup? What kind of settings you have in Relevanssi?

  3. letheos
    Member
    Posted 11 months ago #

    Nothing extraordinary in the setup, I believe. WP is used as a CMS, pages are the main content type we use. Magic Fields and BBPres, are some of the plugins used. You can take a look here: http://www.rodi.it/?s=attrazioni&submit.x=0&submit.y=0

  4. msaari
    Member
    Posted 11 months ago #

    I don't know, Relevanssi should definitely not index revisions. Hard to say why it's doing that.

  5. letheos
    Member
    Posted 11 months ago #

    Anybody else having this problem?

  6. Li-An
    Member
    Posted 11 months ago #

    I don't have this problem. Try to reindex maybe it will help.

  7. letheos
    Member
    Posted 11 months ago #

    Well, I tested on another WP installation and I had the same problem. Pages that have a revision (/pageslug/123-revision/) appear on the search results. To my view this a bug. A quick fix was to add at line 289 the following code:
    if ('inherit' == $status ) $post_ok = false;

    I haven't yet test it thoroughly but it seems to work, at least in my case.

  8. msaari
    Member
    Posted 11 months ago #

    I suppose you mean line 1289? Yes, that should fix it, but inherit posts should not be in the database in the first place.

  9. msaari
    Member
    Posted 11 months ago #

    Actually, I noticed that Relevanssi Premium has a check in that bit to prevent revisions appearing in the results. I've added that check to the free version as well (from 2.9.2), so you don't need to fix every version.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags