• Hi,

    I’ve used Relevanssi several times and was very happy with it and never had any problem until the last webpage I made (https://schwarzwaelder-haus.de).

    It has a custom theme (based on the underscore_s starter theme) and the search is limited to pages, posts and a custom post called projects.

    When indexing, 2 pages – always the same 2, the homepage and the about (uber uns) page – are not indexed and don’t appear in the result list (when building the index, I always have 2 posts excluded: I guess it is them).

    Other posts (like the parallax posts created with the plugin Parallax Scroll by adamrob.co.uk) appear even though their corresponding post type is not checked in the Relenvassi settings.

    While I was able to solve this last problem by manually excluding all undesired posts through the Relenvassi’s settings, I didn’t succeed in including those 2 pages that keep getting excluded from the index.

    All solutions I found online didn’t help: can you give me a hand here?

    Thanks in advance!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 16 through 20 (of 20 total)
  • I would start digging into the relevanssi_index_doc() function (in lib/indexing.php). Is it even running for those posts? If it is, why is it failing? I’d start from the beginning of the function and continue onward until I’d figure out why is it failing.

    Thread Starter btlrknd

    (@btlrknd)

    Maybe I found something.

    The 2 pages are the only one that have a plugin to display Parallax working with shortcode.
    Until now, every time I built the index it would tell me -2 posts excluded and 59 total posts.
    After I allowed the parallax post type created by the plugin to be indexed, the total index went to 61, 0 posts excluded.
    I also unchecked the option “respect exclude_from_search”, since the parallax post type was set to “no”.
    Unfortunately, the search results still don’t show those pages, but maybe it is a matter of database update…

    Do you think this could be the problem?

    The parallax may well be the issue. Looks like my very first response was on the right track then… I think the parallax shortcode is not working with Relevanssi.

    What’s the content of those parallax posts? Where is the actual post content for those pages stored? Probably not in the post content of the pages themselves, then. If the content is stored in the parallax pages, then the solution is not to index the parallax pages, but to make Relevanssi index the content of the parallax pages for the main pages.

    Thread Starter btlrknd

    (@btlrknd)

    The parallax is used only for a section though, there’s a lot of other content that’s not indexed in the page…
    Anyway, can you give me a hint on how to force Relevanssi to index the content of the parallax (each parallax is saved as a post type).
    Thanks!

    You can use the relevanssi_content_to_index filter hook to add any content you want to the post when it’s indexed. Some instructions are here: https://www.relevanssi.com/knowledge-base/indexing-additional-content/

    Check if you’re indexing one of those pages, then if you are, fetch the parallax post contents (get_post() etc.) and add that.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Relevanssi excludes 2 pages’ is closed to new replies.