• In relevanssi settings on the Indexing tab I have the options to index both Products and Product Variations ticked however on the right hand column next to product variations it has “yes” in the excluded from search field

    I want to include SKU searching for product variations, how do I change them to not be excluded ?

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

    (@msaari)

    That doesn’t mean what you think it means. The “yes” in that column means that the variations post type is set to be excluded from search when it’s created, but it doesn’t mean Relevanssi can’t index it.

    If you check the box, Relevanssi will index the product variations. Because it is set to be excluded from the search, you then have to uncheck the “Respect exclude_from_search for custom post types” setting on the Searching tab of Relevanssi settings, otherwise Relevanssi will see that the post type shouldn’t be searched and won’t search it – but once you uncheck that option, Relevanssi won’t care about what WooCommerce wants and will search it anyway.

    That said, it’s often a better idea to index the variation SKUs for the main product, because there’s a reason WooCommerce doesn’t want you to search for product variations (for starters, many WooCommerce themes simply don’t include anything but products in the searches). Here’s how you can do that: https://www.relevanssi.com/knowledge-base/indexing-product-variation-skus-main-product/

Viewing 1 replies (of 1 total)
  • The topic ‘How to not exclude variations’ is closed to new replies.