optimizing solr to improve search
TRANSCRIPT
![Page 1: Optimizing SOLR to Improve Search](https://reader035.vdocuments.net/reader035/viewer/2022070222/613d7931736caf36b75dbf0f/html5/thumbnails/1.jpg)
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
![Page 2: Optimizing SOLR to Improve Search](https://reader035.vdocuments.net/reader035/viewer/2022070222/613d7931736caf36b75dbf0f/html5/thumbnails/2.jpg)
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
![Page 3: Optimizing SOLR to Improve Search](https://reader035.vdocuments.net/reader035/viewer/2022070222/613d7931736caf36b75dbf0f/html5/thumbnails/3.jpg)
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
![Page 4: Optimizing SOLR to Improve Search](https://reader035.vdocuments.net/reader035/viewer/2022070222/613d7931736caf36b75dbf0f/html5/thumbnails/4.jpg)
8/16/12 © 2011 Crown Partners. All Rights Reserved. 4
![Page 5: Optimizing SOLR to Improve Search](https://reader035.vdocuments.net/reader035/viewer/2022070222/613d7931736caf36b75dbf0f/html5/thumbnails/5.jpg)
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
![Page 6: Optimizing SOLR to Improve Search](https://reader035.vdocuments.net/reader035/viewer/2022070222/613d7931736caf36b75dbf0f/html5/thumbnails/6.jpg)
8/16/12 © 2011 Crown Partners. All Rights Reserved. 6
Basic
Troubleshooting
![Page 7: Optimizing SOLR to Improve Search](https://reader035.vdocuments.net/reader035/viewer/2022070222/613d7931736caf36b75dbf0f/html5/thumbnails/7.jpg)
Useful SOLR Tools
! Web Interface
! Luke
! Command Line
8/16/12 © 2011 Crown Partners. All Rights Reserved. 7
![Page 8: Optimizing SOLR to Improve Search](https://reader035.vdocuments.net/reader035/viewer/2022070222/613d7931736caf36b75dbf0f/html5/thumbnails/8.jpg)
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
![Page 9: Optimizing SOLR to Improve Search](https://reader035.vdocuments.net/reader035/viewer/2022070222/613d7931736caf36b75dbf0f/html5/thumbnails/9.jpg)
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
![Page 10: Optimizing SOLR to Improve Search](https://reader035.vdocuments.net/reader035/viewer/2022070222/613d7931736caf36b75dbf0f/html5/thumbnails/10.jpg)
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
![Page 11: Optimizing SOLR to Improve Search](https://reader035.vdocuments.net/reader035/viewer/2022070222/613d7931736caf36b75dbf0f/html5/thumbnails/11.jpg)
8/16/12 © 2011 Crown Partners. All Rights Reserved. 11
Advanced
Optimization
of Search
Results
![Page 12: Optimizing SOLR to Improve Search](https://reader035.vdocuments.net/reader035/viewer/2022070222/613d7931736caf36b75dbf0f/html5/thumbnails/12.jpg)
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
![Page 13: Optimizing SOLR to Improve Search](https://reader035.vdocuments.net/reader035/viewer/2022070222/613d7931736caf36b75dbf0f/html5/thumbnails/13.jpg)
Query Boosting Results
! Boost individual product attributes
! Query time configuration
! Language specific
8/16/12 © 2011 Crown Partners. All Rights Reserved. 13
![Page 14: Optimizing SOLR to Improve Search](https://reader035.vdocuments.net/reader035/viewer/2022070222/613d7931736caf36b75dbf0f/html5/thumbnails/14.jpg)
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
![Page 15: Optimizing SOLR to Improve Search](https://reader035.vdocuments.net/reader035/viewer/2022070222/613d7931736caf36b75dbf0f/html5/thumbnails/15.jpg)
8/16/12 © 2011 Crown Partners. All Rights Reserved. 15
Improving
Search
Speed
![Page 16: Optimizing SOLR to Improve Search](https://reader035.vdocuments.net/reader035/viewer/2022070222/613d7931736caf36b75dbf0f/html5/thumbnails/16.jpg)
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
![Page 17: Optimizing SOLR to Improve Search](https://reader035.vdocuments.net/reader035/viewer/2022070222/613d7931736caf36b75dbf0f/html5/thumbnails/17.jpg)
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
![Page 18: Optimizing SOLR to Improve Search](https://reader035.vdocuments.net/reader035/viewer/2022070222/613d7931736caf36b75dbf0f/html5/thumbnails/18.jpg)
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
![Page 19: Optimizing SOLR to Improve Search](https://reader035.vdocuments.net/reader035/viewer/2022070222/613d7931736caf36b75dbf0f/html5/thumbnails/19.jpg)
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
![Page 20: Optimizing SOLR to Improve Search](https://reader035.vdocuments.net/reader035/viewer/2022070222/613d7931736caf36b75dbf0f/html5/thumbnails/20.jpg)
Questions?
8/16/12 © 2011 Crown Partners. All Rights Reserved. 20
![Page 21: Optimizing SOLR to Improve Search](https://reader035.vdocuments.net/reader035/viewer/2022070222/613d7931736caf36b75dbf0f/html5/thumbnails/21.jpg)
Thank You!
Rob Miller [email protected]
Jason Grim
Ryan Street [email protected]
8/16/12 © 2011 Crown Partners. All Rights Reserved. 21