Title: Exclude product information
Last modified: August 15, 2023

---

# Exclude product information

 *  Resolved [ynkrmb](https://wordpress.org/support/users/ynkrmb/)
 * (@ynkrmb)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/exclude-product-information/)
 * 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](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/exclude-product-information/#post-16975902)
 * 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
 *     ```wp-block-code
       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](https://wordpress.org/support/users/ynkrmb/)
 * (@ynkrmb)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/exclude-product-information/#post-16976391)
 * 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.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=3529670)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ynkrmb](https://wordpress.org/support/users/ynkrmb/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/exclude-product-information/#post-16976391)
 * Status: resolved