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

    (@msaari)

    Are you indexing pages in the first place? Looks like I can’t find any pages with the search. https://www.clearcube.com/?s=siprnet&post_types=page should find your Overview page, but it doesn’t.

    Thread Starter Shehroz Ahmed

    (@shehroz_21)

    Yes, I am indexing the pages as well.

    Please have a look at this screenshot: https://prntscr.com/ji09ci

    That’s what I’m saying, it should index but it is not indexing, maybe it’s because I am not expanding shortcodes as I am using WooCommerce? But I cannot make it work without expanding shortcodes and I can’t even disable WooCommerce.

    I even debugged the index code by printing POST IDs, and excluded all the pages which had WooCommerce shortcodes or had issues, but I still can’t make it work.

    • This reply was modified 6 years, 6 months ago by Shehroz Ahmed.
    Plugin Author Mikko Saari

    (@msaari)

    WooCommerce should not be a problem. Are you using a page builder? The Resources page can be found when searching for “resources”, so looks like the page content is missing. If it’s hidden inside shortcodes, then it’s going to be tricky.

    Try expanding the shortcodes. Are you able to build the index? WooCommerce tends to be a problem, but then again might not be a problem –?Relevanssi does block many WooCommerce shortcodes. I have a test site with WooCommerce in it, and I can index it just fine, even with shortcode expansion enabled.

    If expanding shortcodes does not help, then it’s likely you’re using a page builder that hides the content in a way that Relevanssi doesn’t see it.

    Thread Starter Shehroz Ahmed

    (@shehroz_21)

    Yes, I am using a page builder but the page builder is generating a shortcode like [textfield]My Text[/textfiled], so it should not be a problem either.

    My site indexing stucks at 63, and I would like to see the POST ID which is causing issue, how can see it or turn on debugging? I cannot find any filter for debugging in documents as well.

    Thread Starter Shehroz Ahmed

    (@shehroz_21)

    I think I fixed it by putting remove_shortcode( ‘download-datasheet-email’ ); in indexing.php, it was my custom shortcode which was causing problem, Thanks for your help! :))

    Thread Starter Shehroz Ahmed

    (@shehroz_21)

    There is one small issue, it is not searching for WooCommerce product category.

    Like my category name is “Copper Thin Clients” if I search it, it doesn’t show the category page link.

    Even if the “product_cat” checkbox is checked, but I’ve unchecked the “category” checkbox, because I only want to index WooCommerce categories.

    What could be the reason behind that?

    Plugin Author Mikko Saari

    (@msaari)

    For future reference, you can see the “Lowest post ID indexed” on the indexing page. The next ID downwards is the one that caused the problem, as Relevanssi indexes the IDs in descending order.

    Debugging tools are in the works. There’s some for Premium users who can use WP CLI.

    That fix won’t survive the next Relevanssi update. If you add this to your theme functions.php, that should give you a fix that does:

    add_filter( 'pre_option_relevanssi_disable_shortcodes', 'rlv_fix_shortcode' );
    function rlv_fix_shortcode( $shortcode ) {
        $shortcode = 'download-datasheet-email';
        return $shortcode;
    }

    If you want to see taxonomy term pages in the search results, you need Relevanssi Premium. In the free version, searching for a taxonomy term name will only return posts that have that term.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Plugin is not searching content on a page even if it’s indexed.’ is closed to new replies.