WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. letheos
    Member
    Posted 2 years ago #

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

  2. Mikko Saari
    Member
    Plugin Author

    Posted 2 years ago #

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

  3. letheos
    Member
    Posted 2 years 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. Mikko Saari
    Member
    Plugin Author

    Posted 2 years ago #

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

  5. letheos
    Member
    Posted 2 years ago #

    Anybody else having this problem?

  6. Li-An
    Member
    Posted 2 years ago #

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

  7. letheos
    Member
    Posted 2 years 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. Mikko Saari
    Member
    Plugin Author

    Posted 2 years 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. Mikko Saari
    Member
    Plugin Author

    Posted 2 years 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags