cancel
Showing results for 
Search instead for 
Did you mean: 

Search cannot find Custom Attributes of more than one simple product within a bundle. CE 2.4

Search cannot find Custom Attributes of more than one simple product within a bundle. CE 2.4

Summary of the issue

 

Search cannot find Custom Attributes of more than one simple product within a bundle. 

 

Bundles only appear in search results for one of the simple products attached to the bundle when searching by a custom attribute that all simple products share only one simple is recognised and returns the bundle.

 

For context the Bundle is returned in search when you search for either Simple product SKU but not for the custom attributes

 

Preconditions (*)

  1. Magento version 2.4.0
  2. MySQL version 8.x
  3. PHP version 7.3.23
  4. Total number of products = 3k (3313)
  5. Total number of bundle products = 107

Steps to reproduce (*)

  1. Create bundle
  2. Create 2 Simple products and attach to Bundle
  3. Simple Products Visibility set to: Not Visible Individually
  4. Create Custom Attribute - TEXT FIELD  and Searchable
  5. Attach attribute to both Simples
  6. Give each Simple a unique identifier e.g 001 & 002
  7. Reindex 
  8. Flush cache
  9. Search for custom Attribute

Expected result (*)

  1. The bundle should appear in search results 001 & 002 for either custom attribute

Actual result (*)

Bundle only appears in search results for one of the simple products attached to the bundle. Not for both. 

The bundle is returned when you search for either Simple product SKU but not for the custom attribute