• Resolved ynkrmb

    (@ynkrmb)


    Hi,

    So I have set the indexing option post type: product and taxonomies: product tag. Search results will show up either product name matches or product tags. My problem is that some product information contains the word “design” but also I have a product tag called “design” and I want only design-tagged products to show.

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

    (@msaari)

    You need to set Relevanssi up so that the product information is not indexed. What is the product information in WP terms? If it’s the post content, you can disable it with

    add_filter( 'relevanssi_index_content', '__return_false' );

    If you’re talking about the WooCommerce product short description, that’s the post excerpt so to stop that, just set Relevanssi not to index the excerpts. Then just rebuild the index and you should be fine.

    Thread Starter ynkrmb

    (@ynkrmb)

    Thank you Mikko this piece of code solved the problem!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Exclude product information’ is closed to new replies.