0

I have my fulltext catalogsearch working fine for now, but I still see some not-so-relevant results. Before telling me that Magento's built-in search is terrible I'll tell you that I know there are free extensions out there etc etc, but I don't want to cripple my site with any more extensions.

What's happening is that the "relevance" (which is the score) only gets to 2.0 (from 0), and thus I have say 10 products with the same 2.0 relevance, while I should only have about 3.

My question is : is there a way in which I could tell Magento to add a better score for say name than sku(programmatically or not)?
A bit like Prestashop handles it (see picture below)

Prestashop's score system

Thanks for your insight.

1

If you're willing to convert to Lucene Search which is actually built into the Zend framework that Magento partially uses and only needs a module to activate, you can have relevance and weighting.

By adding a supplemental search attribute, you can even have variants, nicknames and jargon without polluting your product description.

enter image description here

One such module is Blast Lucene and the weighting and ability to select a range of attributes to add to the pool made this non-free module pay for itself in about two months as customers could actually find stuff.

The short answer is "there's no free way you can improve Magento search". I wasted a lot of time, got complaints from both customers and management till I got out of that mindset. Fulltext might allow for the relevance to work, but it's not as competent as Lucene.

It's pretty embarrassing that Magento didn't use Lucene in the first place...

  • pretty embarrassing indeed, I've never tried EE but I hope a better search engine is buitl-in. Thanks for your insight though. Could you please provide a link to this extension to complete your answer, I might want to take a look at this module if a customer asks for it. – Julien Lachal Oct 14 '14 at 8:09
0

Short answer - no, there is no build in options, but there are modules at the magento connect that add it.

What they do is create own full_text index, with the score calculated as attributes with weights.

Also there are Solr integrations.

If you want to edit the query, you can start from app\code\core\Mage\CatalogSearch\Model\Resource\Fulltext.php, method prepareResult

  • I understand you, but as I said, I don't want to add any other extensions to my site. – Julien Lachal Sep 26 '14 at 14:12
  • Can you please clarify what kind of answer you expect form the community? I can't get the idea really. So if you thought there is something in the config, the answer is NO. Would you like some pointers were to start with the code modifications? – Amasty Sep 26 '14 at 14:17
  • aye, hence my edit ^^ I know there is nothing from the base Magento that would allow me to do it. But as far as code is concerned, I have no idea where to look for, the CatalogSearch "module" being that big. Sorry for the confusion. – Julien Lachal Sep 26 '14 at 14:36
  • I've also edited the answer. – Amasty Sep 26 '14 at 16:35
  • I see what you mean, but I think I need to find the place where Magento actually write "2.0" in the relevance column. – Julien Lachal Sep 30 '14 at 8:25

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.