Is it possible to add an order by category attribute in the search catalog?

I would like to add search relevance based on category positions. For example if I search Iphone the result returns to me: iphone case (whose category accessory) and then apple iphone (whose category gsm).

However I would like the result to display the products with the category gsm and then the category accessory, the result would be: apple iphone 7, apple iphone 8 and then iphone 7 case etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.