41
Seek and ye shall find Product Search in Magento 2 Friday, October 28th 2016 Sonja Riesterer – integer_net – @sonjarierr

Seek and ye shall find - 28.10.2016

Embed Size (px)

Citation preview

Page 1: Seek and ye shall find - 28.10.2016

Seek and ye shall find

Product Search in Magento 2

Friday, October 28th 2016

Sonja Riesterer – integer_net – @sonjarierr

Page 2: Seek and ye shall find - 28.10.2016

Hello!

I’m Sonja RiestererMarketing Manager at integer_net

Twitter @sonjarierr

Page 3: Seek and ye shall find - 28.10.2016

Product Search

Page 4: Seek and ye shall find - 28.10.2016

““Seek and ye shall find”, they say, but they don’t say what you’ll find.

── American McGee’s Alice

Page 5: Seek and ye shall find - 28.10.2016

What will you find?

◦ Products

◦ Categories

◦ CMS Pages

Page 6: Seek and ye shall find - 28.10.2016

What will you find?

◦ Products

◦ Categories

◦ CMS Pages

Page 7: Seek and ye shall find - 28.10.2016

Good product search

Page 8: Seek and ye shall find - 28.10.2016

Criteria for a Good Product Search

◦ Results

◦ Speed

◦ Usability

Page 9: Seek and ye shall find - 28.10.2016

Results

Page 10: Seek and ye shall find - 28.10.2016

Differences between Magento 1 & 2

Magento 1.x

◦ MySQL

- Like

- Fulltext

- Combine

◦ Solr (EE)

Magento 2.1 +

◦ MySQL

- Fulltext

◦ Elasticsearch (EE)

Page 11: Seek and ye shall find - 28.10.2016

Fulltext

Page 12: Seek and ye shall find - 28.10.2016

Simple Search Term

Page 13: Seek and ye shall find - 28.10.2016

Partial Words

Page 14: Seek and ye shall find - 28.10.2016

Precision vs. Recall

vs.

Page 15: Seek and ye shall find - 28.10.2016

Search Operator AND

Page 16: Seek and ye shall find - 28.10.2016

Search Operator OR

Page 17: Seek and ye shall find - 28.10.2016

Compound Search Term

Page 18: Seek and ye shall find - 28.10.2016

Number of Search Results

20

79

103

Hoodie Black Hoodie Black Hoodie Zip

Page 19: Seek and ye shall find - 28.10.2016

Precision vs. Recall

Page 20: Seek and ye shall find - 28.10.2016

Speed

Page 21: Seek and ye shall find - 28.10.2016

“ It depends.

── Everyone

Page 22: Seek and ye shall find - 28.10.2016

Usability

Page 23: Seek and ye shall find - 28.10.2016

Filters

Page 24: Seek and ye shall find - 28.10.2016

Redirects

Page 25: Seek and ye shall find - 28.10.2016

Fuzzy Search

Page 26: Seek and ye shall find - 28.10.2016

Suggestions & Recommendations

Page 27: Seek and ye shall find - 28.10.2016

How to improve it

Page 28: Seek and ye shall find - 28.10.2016

How to improve it

◦ Magento‘s default tools

◦ Extensions

◦ External search engines

Page 29: Seek and ye shall find - 28.10.2016

Magento‘s default tools

Page 30: Seek and ye shall find - 28.10.2016

Use the force!

◦ Kick out useless suggestions

◦ Set up synonyms

◦ Redirects rule

◦ Recommendations (EE)

Page 31: Seek and ye shall find - 28.10.2016

Search Terms

Page 32: Seek and ye shall find - 28.10.2016

Attributes

◦ Use in search

◦ Search weight

◦ Use as filter

Page 33: Seek and ye shall find - 28.10.2016

Extensions

Page 34: Seek and ye shall find - 28.10.2016

Extensions

Page 35: Seek and ye shall find - 28.10.2016

External Search Engines

Page 36: Seek and ye shall find - 28.10.2016

External Search Engines

◦ Elasticsearch

◦ Solr

◦ Celebros

◦ Sphinx

◦ Google Custom Search

◦ SLI Learning Search

Page 37: Seek and ye shall find - 28.10.2016

Elasticsearch

◦ Integrated in Enterprise Edition 2.1 +

▫ Stop words (and, the)

▫ Synonyms

▫ Attribute weighting

Page 38: Seek and ye shall find - 28.10.2016

Solr

◦ Was planned for Enterprise Edition

◦ Configuration included in current EE

„The example Solr configuration is not intendedto be used in a production site.“

──Developer Documentation

Page 39: Seek and ye shall find - 28.10.2016

IntegerNet_Solr

◦ Solr extension for Magento 2

◦ Port of M1 extension

If interested, please contact me!

@sonjarierr [email protected]

Page 40: Seek and ye shall find - 28.10.2016

Bonus: Tech Details

◦ Search API

▫ Product Name

▫ Relevance Value

▫ Order

▫ HTML & Details from MySQL

Page 41: Seek and ye shall find - 28.10.2016

Sources

◦Configure Solr and Magento - Developer Documentationhttp://devdocs.magento.com/guides/v2.0/config-guide/solr/solr-magento.html

◦FIX Magento Search Please! #622 – Magento 2 GitHub Issuehttps://github.com/magento/magento2/issues/622

◦integer_net Blog about the Choice Between Solr and Elasticsearchhttps://www.integer-net.com/solr-or-elasticsearch/

◦integer_net Blog about the Choice Between Solr and Elasticsearchhttps://www.integer-net.com/and-or-magento-search-types-search-operators/

◦Icons – Means of Communicationhttp://www.elegantthemes.com (Creative Commons BY 3.0)

◦Magento 2 Extensions on Magento Connecthttps://marketplace.magento.com/extensions/content-customizations/site-search-navigation.html

◦The new way of searching in Magento 2 by Igor Minyaylohttp://www.slideshare.net/maghamed/the-new-way-of-searching-in-magento-2