0

I am studying implementing Solr as a search engine in a startup Magento store.

Since it's indexing the text in a (desirably) efficient way, the keywords I presume are irrelevant for the store indexing.

Can I bypass keywords at all ? What is the importance of keywords in this setup ? SEO only ?

Thanks for your insight.

2
  • what keywords do you mean? Feb 19, 2014 at 14:17
  • The ones you inform at the product creation, meta information tab.
    – Niloct
    Feb 19, 2014 at 14:58

1 Answer 1

1

The keywords in the Meta information tab are there only for SEO reasons.

Most search engines will use these keywords to some degree. As far as I know it has no value for Solr by default.

[Edit] you can auto generate keywords from description the following way. It's based on the idea that the most important words occur the most. Depending on how you write the description this may or may not give any relevant results.

$description = $this->getDescription();
$words = explode("\s", $description); // explode to get all words
$occurrence = array_count_values($words); // get occurrence of words in order of most recurring
$occurrence = array_slice($occurrence, 0, 10); // limit to 10 words

$keywords = implode(', ', array_keys($occurrence)); // create a string from the 10 words
6
  • Is there any way to automate extraction of that keywords from the description text ?
    – Niloct
    Feb 19, 2014 at 15:03
  • I've updated my answer Feb 19, 2014 at 15:13
  • Thank you. About the algorithm it would be nice if it extracted the nouns at least, word occurrence is not a good measure in my sample texts.
    – Niloct
    Feb 20, 2014 at 19:15
  • No you're true, I tried to find the script I once wrote. It worked on large texts with a black list of words, On small texts it doesn't really work well I guess. If you find a better solution please share Feb 20, 2014 at 19:19
  • I thought about attributes. I am setting up layered navigations with lots of user attributes, if I could just pick those options as keywords for the product (specifying which attributes to use) it would be great I think.
    – Niloct
    Feb 21, 2014 at 23:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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