I am trying to figure out how Magento sorts products and how one can move a product up or down in the catalog search results.
How can this be done?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
You cannot directly move results up and down with the default search mechanism in Magento CE. In "fulltext" and "combined" mode the search results are ordered by relevance with:
MATCH (data_index) AGAINST (:query IN BOOLEAN MODE)
In "like" mode, the search results are not ordered at all.
Hoever, in fulltext or combined mode, you can add artificial relevance for specific search terms using a hidden searchable attribute, as explained here: Manually specifying top search results for a specific search query
Some search extensions allow specifying a "boost" or "weight" value for attributes, in this case you can enter a very high value for certain attributes instead.
It really surprises me the Catalog Search doesn't reflect the relevance of the default category... Might have something to do with the nature of the search.
if you change the
System > Config > Catalog > Catalog Search > Search Type to "Fulltext" & reindex, does it help?
If you have configurable products or bundled products, make sure the simple products associated to those are "not visible individually" otherwise you'll have a lot of unwanted search results.
You do that in the product category
catalog > categories > if you want to give an order to everything click on "Default category" if you haven't renamed it go to the last tab "Category products" and hit "Reset filter" then you'll see all your products.
I recommend using multiples of 10 this way if you want to add something in between you can.
10, 20, 30, 40, etc