8/16/12 © 2011 Crown Partners. All Rights Reserved. 1
Click to edit Master title style
8/16/12 © 2011 Crown Partners. All Rights Reserved. 1
SOLR
Presented by: Rob Miller, Jason Grim & Ryan
Street
08/15/2012
Optimizing SOLR to Improve Search
About Crown
! Certified Magento Development Team
! SOLR experts in Advanced Search
! Integration between SOLR and Magento, ERP
8/16/12 © 2011 Crown Partners. All Rights Reserved. 2
Agenda
! Overview of SOLR
! Basic Solr Troubleshooting
– Common SOLR Troubleshooting and Solutions
! Advanced optimization of search results
– Making changes in Solr configuration to better your results.
! Improving search speed
– Optimizing to improve search speed.
8/16/12 © 2011 Crown Partners. All Rights Reserved. 3
8/16/12 © 2011 Crown Partners. All Rights Reserved. 4
Crown’s First SOLR Webinar
! Crown’s SOLR 1.0 Webinar
– Support for Spelling/Synonyms/Stop Words
– Improved Layered Navigation
– September 21, 2011
– http://bit.ly/solrmagentowebinar
8/16/12 © 2011 Crown Partners. All Rights Reserved. 5
8/16/12 © 2011 Crown Partners. All Rights Reserved. 6
Basic
Troubleshooting
Useful SOLR Tools
! Web Interface
! Luke
! Command Line
8/16/12 © 2011 Crown Partners. All Rights Reserved. 7
Magento Cannot Connect to SOLR
! Do you have the right URL and Port?
! Does Your server communicate SOLR and Magento?
8/16/12 © 2011 Crown Partners. All Rights Reserved. 8
Magento and Solr Show Bad or No Results
! Bad Data
! Change from Final to Partial Commit
! Look into the command line for critical errors during index
8/16/12 © 2011 Crown Partners. All Rights Reserved. 9
Where to find more answers…
! Magento Forums
– http://www.magentocommerce.com/boards/
! Magento Answers
– http://www.magentocommerce.com/answers/welcome
! Dr. Gento
– http://www.drgento.com
! And of course… Crown!
– http://www.crownpartners.com/
8/16/12 © 2011 Crown Partners. All Rights Reserved. 10
8/16/12 © 2011 Crown Partners. All Rights Reserved. 11
Advanced
Optimization
of Search
Results
Configuration: Minimum Must Match
! Must Match Formats
– 2
– 75%
– 2<-25%
– 2<-1 5<80%
! Setting is language specific
! Will NOT require Reindex (Query time parameter)
8/16/12 © 2011 Crown Partners. All Rights Reserved. 12
Query Boosting Results
! Boost individual product attributes
! Query time configuration
! Language specific
8/16/12 © 2011 Crown Partners. All Rights Reserved. 13
Where to Find More Answers
! Apache’s Wiki
– http://wiki.apache.org/solr/
! Dr. Gento
– http://www.drgento.com
! And of course… Crown!
– http://www.crownpartners.com/
8/16/12 © 2011 Crown Partners. All Rights Reserved. 14
8/16/12 © 2011 Crown Partners. All Rights Reserved. 15
Improving
Search
Speed
SOLR and Magento Relationship
8/16/12 © 2011 Crown Partners. All Rights Reserved. 16
! User submits a search query
! Magento connects to SOLR and sends over query
! SOLR processes query and returns Magento Product IDs
! Magento loads the product IDs and displays them to the user
Is SOLR the Problem?
! Check qtime of a query
– /select params={…} hits=79 status=0 QTime=48
! Solr Performance Enhancements
– http://wiki.apache.org/solr/SolrPerformanceFactors
8/16/12 © 2011 Crown Partners. All Rights Reserved. 17
MySQL Optimization
! Update your version of MySQL to the latest version
! Make sure your MySQL settings are tuned per Magento’s recommendations
– http://www.magentocommerce.com/whitepaper/
! Using the Memory (HEAP) Storage Engine for Temp Tables
– http://dev.mysql.com/doc//refman/5.0/en/memory-storage-engine.html
! Leverage MySQL query caching
8/16/12 © 2011 Crown Partners. All Rights Reserved. 18
Where to Find More Answers
! Magento Forums
– http://www.magentocommerce.com/boards/
! Magento U Performance and Optimization for System Administrators
– http://www.magentocommerce.com/services/training
! Dr. Gento
– http://www.drgento.com
! And of course… Crown!
– http://www.crownpartners.com/
8/16/12 © 2011 Crown Partners. All Rights Reserved. 19
Questions?
8/16/12 © 2011 Crown Partners. All Rights Reserved. 20
Thank You!
Rob Miller [email protected]
Jason Grim
Ryan Street [email protected]
8/16/12 © 2011 Crown Partners. All Rights Reserved. 21