Search fields precedence

Excursionist
13 1 0

How (product) search fields are prioritised by the "?q=something" parameter?

I understand that it searches in these fields:

body
handle
product_type
tag
title
variants.barcode
variants.sku
variants.title
vendor

But, in what order are the results returned?

Let's say I perform a search for "razors",

Does a product with "razors" in its title go in front of another with "razors" in its body?

What about a product that has a variant with "razors" as sku?

Is there a rank in case a query string matches more fields?

Is this logic documented anywhere?

 

Thank you

0 Likes
Highlighted
Shopify Partner
244 9 49

I think title and body are likely the first priority, then others.

0 Likes