Try our conversational search powered by Generative AI!

Is this possible to give weight to certain fields on commerce CMS search


I like to give weight on SKU field while searching commerce catalog in CMS. In my case if I search by name like "canon" result pops-up however, if I search by SKU code then I do not see the relevent result.

So like to know if someway I can give more weight to certain fields. We are in commerce 9.16 and using standard cms indexing.

Feb 28, 2017 13:52

I would recommend upgrading to start with, i had reported issues through the support just for searching on SKU.

For one we have:

As a workaround before that was released I created and registered my own ISearchQueryBuilder, you can implement that how you like to get whatever weighting you wish for.

Preferably inheriting from LuceneSearchQueryBuilder and override the BuildQuery method.

Feb 28, 2017 16:39
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.