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

    (@msaari)

    Have you set Relevanssi to index product categories? Is “product_cat” checked in the list of taxonomies to index on the Indexing tab in Relevanssi settings? If not, check the box and rebuild the index.

    Thread Starter Forgaria

    (@forgaria)

    Yes. Product_cat was already checked when I built the index…

    Plugin Author Mikko Saari

    (@msaari)

    Hmm, Relevanssi has indexed those missing posts, they do show up when searching for “snow white” for example: https://www.popito.fr/?s=snow+white&post_type=product&product_cat=0

    Searching for “disney snow white” doesn’t work, though, so for some reason, the category is not being indexed for those posts.

    If you add this to your theme functions.php and then go save one of those Snow White products, what does it print out?

    add_filter('relevanssi_indexing_data', 'rlv_test');
    function rlv_test($data) {
        var_dump($data);
        exit();
    }

    Then remove the code and save the post again.

    Thread Starter Forgaria

    (@forgaria)

    Thanks for your answer!

    Here is what it printed out:

    array(5) { ["pop"]=> array(2) { ["taxonomy"]=> int(1) ["taxonomy_detail"]=> string(29) "a:1:{s:11:"product_cat";i:1;}" } ["disney"]=> array(2) { ["taxonomy"]=> int(1) ["taxonomy_detail"]=> string(29) "a:1:{s:11:"product_cat";i:1;}" } ["xxx"]=> array(1) { ["title"]=> int(1) } ["snow"]=> array(1) { ["title"]=> int(2) } ["white"]=> array(1) { ["title"]=> int(2) } }

    Plugin Author Mikko Saari

    (@msaari)

    Relevanssi is seeing “pop” from product_cat, “disney” also from “product_cat”, but “snow” and “white” only from the title.

    Hard to say what’s wrong here, figuring this out would require in-close debugging on your site, but that’s unfortunately the level of service I can’t offer for users of free Relevanssi.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Categories not indexed?’ is closed to new replies.