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

    (@msaari)

    The question about the “Excluded from search” comes up often enough that I wrote an explanation of what that actually means. You can find it here.

    Anyway, you don’t want to index the woo_product_tab post type, because you don’t want to return just the tabs in the search results. You want the product returned, not just the tab object. The tab object is not meant to be manipulated alone.

    The key is to make Relevanssi index the tab content as part of the product post. I’m not sure how to do that. I tried looking at the Product Tab plugin code, but I couldn’t figure out how the tab content is actually added to the product post. Do you know how that works? Is there a function in the template, a shortcode in the product content or something else? If the tabs are added in the template, then that would explain it – something like that is completely invisible to Relevanssi.

    Thread Starter sprocker

    (@sprocker)

    thanks for your explanation…

    The Tab content is stored on the wp_postmeta table with the meta_key _wpt_field_catalogue and the contents in the meta_value column.

    Would your search look in this field if I set Custom Fields to “some” and entered _wpt_field_catalogue in the relevanssi_index_fields box?

    Thanks

    Plugin Author Mikko Saari

    (@msaari)

    Yes, that sounds like something worth trying.

    Thread Starter sprocker

    (@sprocker)

    YES! it worked GREAT!!!!

    Thanks

    Thread Starter sprocker

    (@sprocker)

    Another question if I may….

    I have set the Default operator to AND but I I am not getting the results I was expecting.

    For example – if I search for three words eg victorian tasmanian quartz

    The results I get include products that contain on of the three words – not all of them.

    How do I ensure that the search results only show products that have all three words included in their description?

    Thanks

    Plugin Author Mikko Saari

    (@msaari)

    Is it possible there isn’t any posts with those three words? Is the “Fallback to OR” setting enabled? If so, try disabling that and see what happens.

    Thread Starter sprocker

    (@sprocker)

    This is the Searching page: https://snipboard.io/G5RhY0.jpg

    Victorian Tasmanian Quartz – gives 116 results so seems to be using “or” ==> https://www.scripoworld.com/?s=victorian+tasmanian+quartz

    “Victorian Tasmanian Quartz” gives 0 results ==> https://www.scripoworld.com/?s=%22victorian+tasmanian+quartz%22

    Why is the “And” not being used? do I need to re-index after the setting are changed?

    Thanks

    Thread Starter sprocker

    (@sprocker)

    sorry – I needed to tick to disable – now done and works perfectly!

    Brilliant plugin!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WooCommerce Product Tabs content indexing’ is closed to new replies.