cancel
Showing results for 
Search instead for 
Did you mean: 

Solr search results not showing variant products

sreearumilli
Participant
0 Kudos

Hi,

In my project I have below product structure

Base product : S102.103.111

Style Variant : S102.103.111_1 S102.103.111_2

Size variants: S102.103.111_1_12 S102.103.111_1_13

So when I search with base product code S102.103.111. It should return all the variant related to base product as all the variants have the baseproduct code(as a substring).

But it's not fetching the results.

Any inputs where I need to look into.

Sreenivas A.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Had the same probleme before, follow this link here to solve your issue.

former_member586682
Discoverer
0 Kudos

Do you indexing also variants?

In your SolrIndexedType you can configure Indexer queries which can include or exclude variants.

sreearumilli
Participant
0 Kudos

yes I am indexing variants as well and I can see the variant products in solr admin.

Former Member
0 Kudos

Hi, I want to exclude variant products from product list, where shall I make changes

Former Member
0 Kudos

you can exclude variants by using the below query as your full indexer query.

select {pk} from {product!}

This will exclude all the sub-types of the product including variants