SlideShare a Scribd company logo
SOLR SEARCH IN MAGENTO ENTERPRISE
Are you asking yourself how to improve Magento
search?
The open source shop enterprise system Magento is ruling the online shop
software market.
But many shop owners know about its weak search performance.
Mangento's search can be slow and uncomfortable for the customers.
So many shop owners are asking themselves HOW help customers to find
(and buy) the desired products with ease???
WHAT is SOLR?
Solr is an open source search engine, which is used in various complex software
projects.
Solr is an alternative search functionality that can be used for free.
In comparison to the standard search of Magento, Solr differentiates itself through
a significantly higher performance. The library also offers additional features such
as spelling correction or a faceted search which is very useful for example, for filter
search.
Some reasons to use Solr with Magento
•Magento ships with a sample Solr configuration that enables you to
provide users with a powerful search engine without your needing
to customize any code.
•You get better performance of search, catalog views, and layered
navigation.
•When the system is under load, Solr avoids frequent updates of the
MySQL catalogsearch_fulltext table and alleviates issues with
database table locks.
Feature
Magento with MySQL full-text
search
Magento with Solr
search
Full text search
Yes and also supports two
additional search modes:
- Like
- Combined (like and full text)
Yes
Search recommendations Yes Yes
Faceted search (used in layered navigation) Yes Yes
Range (such as price range) Yes Yes
Sort-by options (for example, sort by relevance) Yes Yes
Zero results tips or results correction No Yes
Suggestions No Yes
Clustering No Yes
Attribute weight based on attribute settings No Yes
Search localized characters No Yes
Word delimiter No Yes
SOLR is integrated in Magento Enterprise
Integration with Solr has been available since
version 1.8 Enterprise of Magento. For now, this is
only available for the Enterprise version, not for
the Community version.
How to install it properly?
In order to install it properly, you must have the four following .txt files:
•protwords.txt – This is used for “Protected Words.” This file protects against the
stemmer, reducing two unrelated words to the same base word and clearing up
your search feature
•spellings.txt – defines misspelled words and searches them appropriately
•stopwords.txt – incorporates any words that stop the search
•synonym.txt – provides synonyms in order to search more broadly
Technical part
(if it’s not for you, just skip next 5 slides. We will tell nobody!)
1. Make sure your Java JDK is installed
sudo add-apt-repository ppa:sun-java-community-team/sun-java6
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-jdk
2. Install and configure Tomcat
Installation:
sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user
Configuration:
vi /etc/tomcat6/tomcat-users.xml
Add the following roles and user to the configuration.
<role rolename="admin"/>
<role rolename="manager"/>
<user username="tomcat" password="password" roles="admin,manager"/>
Restart the server: /etc/init.d/tomcat6 restart
If all goes well, go to http://hostname:8080
3. Install SOLR
Check for the latest distro here.. http://apache.rediris.es/lucene/solr/
Download release http://apache.rediris.es/lucene/solr/4.10.4/solr-4.10.4.zip
Install & Configure
1. unzip solr-4.10.4.zip
2. mkdir /usr/share/tomcat6/webapps
3. cp solr-4.10.4/dist/solr-4.10.4.war /usr/share/tomcat6/webapps/solr.war
4. cp -r solr-4.10.4/example/solr /usr/share/tomcat6/solr
5. vi /etc/tomcat6/Catalina/localhost/solr.xml
<Context docBase="/usr/share/tomcat6/webapps/solr.war" debug="0"
privileged="true" allowLinking="true" crossContext="true">
<Environment name="solr/home" type="java.lang.String"
value="/usr/share/tomcat6/solr" override="true" />
</Context>
6. chown -r tomcat6.tomcat6 /var/lib/tomcat6
7. /etc/init.d/tomcat6 restart
You should see Solr access on your Tomcat admin/manager page
(http://hostname:8080/manager/html)
4. Configure Magento to use SOLR
Replace the original Solr conf directory with the Magento conf files. The trick is just
to copy the directory from Magento, and replace the one in Solr. That's it!
In Magento, the folder is located in: [magento-instance-
root]/lib/Apache/Solr/conf.
In Solr, the folder is located in [Solr-instance-root]/example/solr/conf.
Configure Solr in Magento
System ->
Configuration ->
Catalog ->
Catalog Search
Enable Search Recommendations – Yes to use Solr instead of MySQL.
Fulltext search to generate the layered navigation.
Search Recommendations Count – specifies the number of words that
will be provided to the customer as recommended terms related to
customers search.
Show Results Count for Each Recommendation – if yes, the # of
products found for the proposed search recommendation is shown in
brackets next to it.
Configure Solr in Magento
Catalog Navigation
System -> Configuration -> Catalog tab.
Set “Enable Solr Engine for Catalog Navigation” to YES
to use Solr instead of the MySQL Fulltext search to
generate the layered results.
FINAL THOUGHTS
The above will only work if it is an ongoing aspect of your site operation and
management! You can just ‘Set it and forget it!’ – you will have review what you
have in place at least once a quarter to make sure that the configuration that is in
place and still relevant to the current market. Examine the Search Terms list and
focus on those terms with the greatest Number of Uses to make sure that
customers are being directed where they need to go to convert and adjust based
on new products, categories or changes in customer behaviour!
CHECK THIS AND OTHER MAGENTO TIPS ON
HTTP://MAGETIPS.COM

More Related Content

Similar to Solr search in magento enterprise (20)

PDF
Seek and ye shall find - 28.10.2016
Sonja Riesterer
 
PDF
Enterprise Search - Apache Solr in Magento Enterprise at Magento Live DE
Tobias Zander
 
PPTX
Laravel and SOLR
Peter Steenbergen
 
PPTX
DRUPAL Search API Solr
Andrew Siz
 
ODP
Solr features
Marcos García
 
PPTX
Implementing full text search with Apache Solr
techprane
 
PPTX
Apache Solr + ajax solr
Net7
 
PPTX
Making your Drupal fly with Apache SOLR
Exove
 
PPTX
Methods and Best Practices for High Performance eCommerce
dmitriysoroka
 
PPT
Working with solr.pptx
alignminds
 
PPTX
Start Your Search Engines: Optimizing Solr to Improve Results
Ryan Street
 
PDF
Introduction Apache Solr & PHP
Hiraq Citra M
 
PDF
Meet Magento 2015 Utrecht - ElasticSearch - Smile
Smile I.T is open
 
PPTX
Organic Search in Magento - PushON
Dan Akister
 
PPTX
Organic Search in Magento - PushON
PushON Ltd
 
PDF
Journey of Implementing Solr at Target: Presented by Raja Ramachandran, Target
Lucidworks
 
PDF
OpenCms Days 2015 Advanced Solr Searching
Alkacon Software GmbH & Co. KG
 
PDF
Rebuilding Solr 6 Examples - Layer by Layer: Presented by Alexandre Rafalovit...
Lucidworks
 
KEY
Intro to Apache Solr for Drupal
Chris Caple
 
PPT
Solr 4
Abhey Gupta
 
Seek and ye shall find - 28.10.2016
Sonja Riesterer
 
Enterprise Search - Apache Solr in Magento Enterprise at Magento Live DE
Tobias Zander
 
Laravel and SOLR
Peter Steenbergen
 
DRUPAL Search API Solr
Andrew Siz
 
Solr features
Marcos García
 
Implementing full text search with Apache Solr
techprane
 
Apache Solr + ajax solr
Net7
 
Making your Drupal fly with Apache SOLR
Exove
 
Methods and Best Practices for High Performance eCommerce
dmitriysoroka
 
Working with solr.pptx
alignminds
 
Start Your Search Engines: Optimizing Solr to Improve Results
Ryan Street
 
Introduction Apache Solr & PHP
Hiraq Citra M
 
Meet Magento 2015 Utrecht - ElasticSearch - Smile
Smile I.T is open
 
Organic Search in Magento - PushON
Dan Akister
 
Organic Search in Magento - PushON
PushON Ltd
 
Journey of Implementing Solr at Target: Presented by Raja Ramachandran, Target
Lucidworks
 
OpenCms Days 2015 Advanced Solr Searching
Alkacon Software GmbH & Co. KG
 
Rebuilding Solr 6 Examples - Layer by Layer: Presented by Alexandre Rafalovit...
Lucidworks
 
Intro to Apache Solr for Drupal
Chris Caple
 
Solr 4
Abhey Gupta
 

Recently uploaded (20)

PDF
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PDF
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
PDF
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Ad

Solr search in magento enterprise

  • 1. SOLR SEARCH IN MAGENTO ENTERPRISE
  • 2. Are you asking yourself how to improve Magento search? The open source shop enterprise system Magento is ruling the online shop software market. But many shop owners know about its weak search performance. Mangento's search can be slow and uncomfortable for the customers. So many shop owners are asking themselves HOW help customers to find (and buy) the desired products with ease???
  • 3. WHAT is SOLR? Solr is an open source search engine, which is used in various complex software projects. Solr is an alternative search functionality that can be used for free. In comparison to the standard search of Magento, Solr differentiates itself through a significantly higher performance. The library also offers additional features such as spelling correction or a faceted search which is very useful for example, for filter search.
  • 4. Some reasons to use Solr with Magento •Magento ships with a sample Solr configuration that enables you to provide users with a powerful search engine without your needing to customize any code. •You get better performance of search, catalog views, and layered navigation. •When the system is under load, Solr avoids frequent updates of the MySQL catalogsearch_fulltext table and alleviates issues with database table locks.
  • 5. Feature Magento with MySQL full-text search Magento with Solr search Full text search Yes and also supports two additional search modes: - Like - Combined (like and full text) Yes Search recommendations Yes Yes Faceted search (used in layered navigation) Yes Yes Range (such as price range) Yes Yes Sort-by options (for example, sort by relevance) Yes Yes Zero results tips or results correction No Yes Suggestions No Yes Clustering No Yes Attribute weight based on attribute settings No Yes Search localized characters No Yes Word delimiter No Yes
  • 6. SOLR is integrated in Magento Enterprise Integration with Solr has been available since version 1.8 Enterprise of Magento. For now, this is only available for the Enterprise version, not for the Community version.
  • 7. How to install it properly? In order to install it properly, you must have the four following .txt files: •protwords.txt – This is used for “Protected Words.” This file protects against the stemmer, reducing two unrelated words to the same base word and clearing up your search feature •spellings.txt – defines misspelled words and searches them appropriately •stopwords.txt – incorporates any words that stop the search •synonym.txt – provides synonyms in order to search more broadly
  • 8. Technical part (if it’s not for you, just skip next 5 slides. We will tell nobody!)
  • 9. 1. Make sure your Java JDK is installed sudo add-apt-repository ppa:sun-java-community-team/sun-java6 sudo apt-get update sudo apt-get install sun-java6-jre sun-java6-jdk
  • 10. 2. Install and configure Tomcat Installation: sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user Configuration: vi /etc/tomcat6/tomcat-users.xml Add the following roles and user to the configuration. <role rolename="admin"/> <role rolename="manager"/> <user username="tomcat" password="password" roles="admin,manager"/> Restart the server: /etc/init.d/tomcat6 restart If all goes well, go to http://hostname:8080
  • 11. 3. Install SOLR Check for the latest distro here.. http://apache.rediris.es/lucene/solr/ Download release http://apache.rediris.es/lucene/solr/4.10.4/solr-4.10.4.zip Install & Configure 1. unzip solr-4.10.4.zip 2. mkdir /usr/share/tomcat6/webapps 3. cp solr-4.10.4/dist/solr-4.10.4.war /usr/share/tomcat6/webapps/solr.war 4. cp -r solr-4.10.4/example/solr /usr/share/tomcat6/solr
  • 12. 5. vi /etc/tomcat6/Catalina/localhost/solr.xml <Context docBase="/usr/share/tomcat6/webapps/solr.war" debug="0" privileged="true" allowLinking="true" crossContext="true"> <Environment name="solr/home" type="java.lang.String" value="/usr/share/tomcat6/solr" override="true" /> </Context> 6. chown -r tomcat6.tomcat6 /var/lib/tomcat6 7. /etc/init.d/tomcat6 restart You should see Solr access on your Tomcat admin/manager page (http://hostname:8080/manager/html)
  • 13. 4. Configure Magento to use SOLR Replace the original Solr conf directory with the Magento conf files. The trick is just to copy the directory from Magento, and replace the one in Solr. That's it! In Magento, the folder is located in: [magento-instance- root]/lib/Apache/Solr/conf. In Solr, the folder is located in [Solr-instance-root]/example/solr/conf.
  • 14. Configure Solr in Magento System -> Configuration -> Catalog -> Catalog Search
  • 15. Enable Search Recommendations – Yes to use Solr instead of MySQL. Fulltext search to generate the layered navigation. Search Recommendations Count – specifies the number of words that will be provided to the customer as recommended terms related to customers search. Show Results Count for Each Recommendation – if yes, the # of products found for the proposed search recommendation is shown in brackets next to it. Configure Solr in Magento
  • 16. Catalog Navigation System -> Configuration -> Catalog tab. Set “Enable Solr Engine for Catalog Navigation” to YES to use Solr instead of the MySQL Fulltext search to generate the layered results.
  • 17. FINAL THOUGHTS The above will only work if it is an ongoing aspect of your site operation and management! You can just ‘Set it and forget it!’ – you will have review what you have in place at least once a quarter to make sure that the configuration that is in place and still relevant to the current market. Examine the Search Terms list and focus on those terms with the greatest Number of Uses to make sure that customers are being directed where they need to go to convert and adjust based on new products, categories or changes in customer behaviour!
  • 18. CHECK THIS AND OTHER MAGENTO TIPS ON HTTP://MAGETIPS.COM