Sorry, I should have specified that we are using Woocommercwe which has Simple Products, Variable Products, Grouped Products and other product types. Grouped products have links to other products to form a parent product with child products. So in WordPress terms, the Parent Product is one post and each child product is its own post.
This is different to a Variable product which has variations defined within the single product (post) and no additional products (posts).
If my understanding is correct, the Variable Product Method which we have used successfully for our Variable Products is indexing within the Variations data of the same Product (post). Grouped Products would need to index based on their linked Products (posts). This would require different code and logic?