SlideShare una empresa de Scribd logo
1 de 12
Drupal7 & Apache Solr




    By Nikolay Ignatov
  OpenSource Department
   Senior PHP Developer
About me
•   Nikolay Ignatov
•   Using PHP since 2006
•   Working with Drupal since 2009
•   Love to learn new technologies
    ( PHP Libevent:
    http://php.net/manual/en/book.libevent.php
    )
What is Apache Solr?
What is Apache Solr?
• Open source enterprise search platform
• Written in Java
• Built using Lucene Core (Apache Lucene
  Project)
• SOLR = Searching on Lucene Replication
• Standalone server using Tomcat or Jetty
• REST-like API
Some Solr features
• Advanced, Configurable Text Analysis
• Faceted Search and Filtering
• Geospatial Search
• Rich Document Parsing and Indexing
  (PDF, Word, HTML, etc) using Apache
  Tika
• More on http://lucene.apache.org/solr/
Installing Apache Solr
• Java 1.5 or greater installed.
• A servlet container such as Tomcat, Jetty
  or Resin
• Download Apache Solr from
  http://apache.skknet.net/lucene/solr/
• Follow the installation instructions from
  http://wiki.apache.org/solr/SolrInstall
• Apache Solr contains Jetty in it
Solr special files

• Synonims.txt
• Stopwords.txt
• Spellings.txt
Integrate Drupal and Solr
• Modules:
  – http://drupal.org/project/apachesolr
  – http://drupal.org/project/facetapi (optional)
• Copy Drupal configuration files for Apache
  Solr:
  – ../apachesolr/solr-conf/solrconfig.xml
  – ../apachesolr/solr-conf/schema.xml
• Configure the enviorment and index content
• Setup search pages
Config + Facet

• By default Solr sort by relevance so we
  need some setup for more relevant results

• Setup the facets
Useful hooks

• hook_apachesolr_index_documents_alter

• hook_apachesolr_query_alter
Powerful modules

• http://drupal.org/project/apachesolr_views
• http://drupal.org/project/apachesolr_autoc
  omplete
• http://drupal.org/project/apachesolr_attach
  ments
THANK YOU!

 Questions




  ?

Más contenido relacionado

La actualidad más candente

Visualize Solr Data with Banana: Presented by Andrew Thanalertvisuti, Lucidworks
Visualize Solr Data with Banana: Presented by Andrew Thanalertvisuti, LucidworksVisualize Solr Data with Banana: Presented by Andrew Thanalertvisuti, Lucidworks
Visualize Solr Data with Banana: Presented by Andrew Thanalertvisuti, LucidworksLucidworks
 
Apache Solr! Enterprise Search Solutions at your Fingertips!
Apache Solr! Enterprise Search Solutions at your Fingertips!Apache Solr! Enterprise Search Solutions at your Fingertips!
Apache Solr! Enterprise Search Solutions at your Fingertips!Murshed Ahmmad Khan
 
KEYNOTE: Solr- Past, Present & Future
KEYNOTE: Solr- Past, Present & Future KEYNOTE: Solr- Past, Present & Future
KEYNOTE: Solr- Past, Present & Future lucenerevolution
 
Flexible search in Apache Jackrabbit Oak
Flexible search in Apache Jackrabbit OakFlexible search in Apache Jackrabbit Oak
Flexible search in Apache Jackrabbit OakTommaso Teofili
 
Laravel introduction
Laravel introductionLaravel introduction
Laravel introductionSimon Funk
 
Apache Solr Workshop
Apache Solr WorkshopApache Solr Workshop
Apache Solr WorkshopJSGB
 
State of Search, Solr and Facets in Drupal 8 - Drupalcamp Belgium 2015
State of Search, Solr and Facets in Drupal 8 - Drupalcamp Belgium 2015State of Search, Solr and Facets in Drupal 8 - Drupalcamp Belgium 2015
State of Search, Solr and Facets in Drupal 8 - Drupalcamp Belgium 2015Dropsolid
 
A introduction to Laravel framework
A introduction to Laravel frameworkA introduction to Laravel framework
A introduction to Laravel frameworkPhu Luong Trong
 
Search and analyze your data with elasticsearch
Search and analyze your data with elasticsearchSearch and analyze your data with elasticsearch
Search and analyze your data with elasticsearchAnton Udovychenko
 
Java SE 7 New Features and Enhancements
Java SE 7 New Features and EnhancementsJava SE 7 New Features and Enhancements
Java SE 7 New Features and EnhancementsFu Cheng
 
Hire laravel-php-developers- Hire Laravel Programmers
Hire laravel-php-developers- Hire Laravel ProgrammersHire laravel-php-developers- Hire Laravel Programmers
Hire laravel-php-developers- Hire Laravel ProgrammersSummation IT
 
Apache Solr Search Course Drupal 7 Acquia
Apache Solr Search Course Drupal 7 AcquiaApache Solr Search Course Drupal 7 Acquia
Apache Solr Search Course Drupal 7 AcquiaDropsolid
 
From Lucene to Solr 4 Trunk
From Lucene to Solr 4 TrunkFrom Lucene to Solr 4 Trunk
From Lucene to Solr 4 Trunktdthomassld
 

La actualidad más candente (20)

Visualize Solr Data with Banana: Presented by Andrew Thanalertvisuti, Lucidworks
Visualize Solr Data with Banana: Presented by Andrew Thanalertvisuti, LucidworksVisualize Solr Data with Banana: Presented by Andrew Thanalertvisuti, Lucidworks
Visualize Solr Data with Banana: Presented by Andrew Thanalertvisuti, Lucidworks
 
Apache Solr! Enterprise Search Solutions at your Fingertips!
Apache Solr! Enterprise Search Solutions at your Fingertips!Apache Solr! Enterprise Search Solutions at your Fingertips!
Apache Solr! Enterprise Search Solutions at your Fingertips!
 
KEYNOTE: Solr- Past, Present & Future
KEYNOTE: Solr- Past, Present & Future KEYNOTE: Solr- Past, Present & Future
KEYNOTE: Solr- Past, Present & Future
 
Flexible search in Apache Jackrabbit Oak
Flexible search in Apache Jackrabbit OakFlexible search in Apache Jackrabbit Oak
Flexible search in Apache Jackrabbit Oak
 
Laravel introduction
Laravel introductionLaravel introduction
Laravel introduction
 
Laravel Introduction
Laravel IntroductionLaravel Introduction
Laravel Introduction
 
Fedora4
Fedora4Fedora4
Fedora4
 
Apache Solr Workshop
Apache Solr WorkshopApache Solr Workshop
Apache Solr Workshop
 
Solr Recipes
Solr RecipesSolr Recipes
Solr Recipes
 
Laravel 4 presentation
Laravel 4 presentationLaravel 4 presentation
Laravel 4 presentation
 
State of Search, Solr and Facets in Drupal 8 - Drupalcamp Belgium 2015
State of Search, Solr and Facets in Drupal 8 - Drupalcamp Belgium 2015State of Search, Solr and Facets in Drupal 8 - Drupalcamp Belgium 2015
State of Search, Solr and Facets in Drupal 8 - Drupalcamp Belgium 2015
 
Getting started with laravel
Getting started with laravelGetting started with laravel
Getting started with laravel
 
A introduction to Laravel framework
A introduction to Laravel frameworkA introduction to Laravel framework
A introduction to Laravel framework
 
SOLR
SOLRSOLR
SOLR
 
Search and analyze your data with elasticsearch
Search and analyze your data with elasticsearchSearch and analyze your data with elasticsearch
Search and analyze your data with elasticsearch
 
Java SE 7 New Features and Enhancements
Java SE 7 New Features and EnhancementsJava SE 7 New Features and Enhancements
Java SE 7 New Features and Enhancements
 
Hire laravel-php-developers- Hire Laravel Programmers
Hire laravel-php-developers- Hire Laravel ProgrammersHire laravel-php-developers- Hire Laravel Programmers
Hire laravel-php-developers- Hire Laravel Programmers
 
Apache Solr Search Course Drupal 7 Acquia
Apache Solr Search Course Drupal 7 AcquiaApache Solr Search Course Drupal 7 Acquia
Apache Solr Search Course Drupal 7 Acquia
 
From Lucene to Solr 4 Trunk
From Lucene to Solr 4 TrunkFrom Lucene to Solr 4 Trunk
From Lucene to Solr 4 Trunk
 
What Is Hobo ?
What Is Hobo ?What Is Hobo ?
What Is Hobo ?
 

Destacado

Drupal and Elasticsearch - The "new school" search engine
Drupal and Elasticsearch - The "new school" search engineDrupal and Elasticsearch - The "new school" search engine
Drupal and Elasticsearch - The "new school" search engineNikolay Ignatov
 
Managing Security At 1M Events a Second using Elasticsearch
Managing Security At 1M Events a Second using ElasticsearchManaging Security At 1M Events a Second using Elasticsearch
Managing Security At 1M Events a Second using ElasticsearchJoe Alex
 
Real-time search in Drupal with Elasticsearch @Moldcamp
Real-time search in Drupal with Elasticsearch @MoldcampReal-time search in Drupal with Elasticsearch @Moldcamp
Real-time search in Drupal with Elasticsearch @MoldcampAlexei Gorobets
 
Drupal and Elasticsearch
Drupal and ElasticsearchDrupal and Elasticsearch
Drupal and ElasticsearchNikolay Ignatov
 

Destacado (6)

Drupal and Elasticsearch - The "new school" search engine
Drupal and Elasticsearch - The "new school" search engineDrupal and Elasticsearch - The "new school" search engine
Drupal and Elasticsearch - The "new school" search engine
 
Managing Security At 1M Events a Second using Elasticsearch
Managing Security At 1M Events a Second using ElasticsearchManaging Security At 1M Events a Second using Elasticsearch
Managing Security At 1M Events a Second using Elasticsearch
 
DrupalANDElasticsearch
DrupalANDElasticsearchDrupalANDElasticsearch
DrupalANDElasticsearch
 
Real-time search in Drupal with Elasticsearch @Moldcamp
Real-time search in Drupal with Elasticsearch @MoldcampReal-time search in Drupal with Elasticsearch @Moldcamp
Real-time search in Drupal with Elasticsearch @Moldcamp
 
Facet and Search API
Facet and Search APIFacet and Search API
Facet and Search API
 
Drupal and Elasticsearch
Drupal and ElasticsearchDrupal and Elasticsearch
Drupal and Elasticsearch
 

Similar a Drupal7 and Apache Solr

Building Intelligent Search Applications with Apache Solr and PHP5
Building Intelligent Search Applications with Apache Solr and PHP5Building Intelligent Search Applications with Apache Solr and PHP5
Building Intelligent Search Applications with Apache Solr and PHP5israelekpo
 
Solr Recipes Workshop
Solr Recipes WorkshopSolr Recipes Workshop
Solr Recipes WorkshopErik Hatcher
 
Enterprise search in_drupal_pub
Enterprise search in_drupal_pubEnterprise search in_drupal_pub
Enterprise search in_drupal_pubdstuartnz
 
The First Class Integration of Solr with Hadoop
The First Class Integration of Solr with HadoopThe First Class Integration of Solr with Hadoop
The First Class Integration of Solr with Hadooplucenerevolution
 
Intro to Apache Solr for Drupal
Intro to Apache Solr for DrupalIntro to Apache Solr for Drupal
Intro to Apache Solr for DrupalChris Caple
 
Apache Solr 5.0 and beyond
Apache Solr 5.0 and beyondApache Solr 5.0 and beyond
Apache Solr 5.0 and beyondAnshum Gupta
 
Introduction to Solr
Introduction to SolrIntroduction to Solr
Introduction to SolrErik Hatcher
 
What's new in Solr 5.0
What's new in Solr 5.0What's new in Solr 5.0
What's new in Solr 5.0Anshum Gupta
 
Drupal & Apache Solr
Drupal & Apache SolrDrupal & Apache Solr
Drupal & Apache SolrAndrei Savu
 
Solr Powered Lucene
Solr Powered LuceneSolr Powered Lucene
Solr Powered LuceneErik Hatcher
 
Suche mit Apache Lucene & Co.
Suche mit Apache Lucene & Co.Suche mit Apache Lucene & Co.
Suche mit Apache Lucene & Co.inovex GmbH
 
Lecture11_LaravelGetStarted_SPring2023.pdf
Lecture11_LaravelGetStarted_SPring2023.pdfLecture11_LaravelGetStarted_SPring2023.pdf
Lecture11_LaravelGetStarted_SPring2023.pdfShaimaaMohamedGalal
 
Apache Content Technologies
Apache Content TechnologiesApache Content Technologies
Apache Content Technologiesgagravarr
 
Let's Build an Inverted Index: Introduction to Apache Lucene/Solr
Let's Build an Inverted Index: Introduction to Apache Lucene/SolrLet's Build an Inverted Index: Introduction to Apache Lucene/Solr
Let's Build an Inverted Index: Introduction to Apache Lucene/SolrSease
 
Building Enterprise Search Engines using Open Source Technologies
Building Enterprise Search Engines using Open Source TechnologiesBuilding Enterprise Search Engines using Open Source Technologies
Building Enterprise Search Engines using Open Source TechnologiesRahul Singh
 
Building Enterprise Search Engines using Open Source Technologies
Building Enterprise Search Engines using Open Source TechnologiesBuilding Enterprise Search Engines using Open Source Technologies
Building Enterprise Search Engines using Open Source TechnologiesAnant Corporation
 

Similar a Drupal7 and Apache Solr (20)

Building Intelligent Search Applications with Apache Solr and PHP5
Building Intelligent Search Applications with Apache Solr and PHP5Building Intelligent Search Applications with Apache Solr and PHP5
Building Intelligent Search Applications with Apache Solr and PHP5
 
Solr Recipes Workshop
Solr Recipes WorkshopSolr Recipes Workshop
Solr Recipes Workshop
 
Enterprise search in_drupal_pub
Enterprise search in_drupal_pubEnterprise search in_drupal_pub
Enterprise search in_drupal_pub
 
The First Class Integration of Solr with Hadoop
The First Class Integration of Solr with HadoopThe First Class Integration of Solr with Hadoop
The First Class Integration of Solr with Hadoop
 
Intro to Apache Solr for Drupal
Intro to Apache Solr for DrupalIntro to Apache Solr for Drupal
Intro to Apache Solr for Drupal
 
Apache Solr 5.0 and beyond
Apache Solr 5.0 and beyondApache Solr 5.0 and beyond
Apache Solr 5.0 and beyond
 
Introduction to Solr
Introduction to SolrIntroduction to Solr
Introduction to Solr
 
What's new in Solr 5.0
What's new in Solr 5.0What's new in Solr 5.0
What's new in Solr 5.0
 
Drupal & Apache Solr
Drupal & Apache SolrDrupal & Apache Solr
Drupal & Apache Solr
 
Solr Powered Lucene
Solr Powered LuceneSolr Powered Lucene
Solr Powered Lucene
 
Suche mit Apache Lucene & Co.
Suche mit Apache Lucene & Co.Suche mit Apache Lucene & Co.
Suche mit Apache Lucene & Co.
 
Introduction Apache solr 4.4
Introduction Apache solr 4.4Introduction Apache solr 4.4
Introduction Apache solr 4.4
 
Lecture11_LaravelGetStarted_SPring2023.pdf
Lecture11_LaravelGetStarted_SPring2023.pdfLecture11_LaravelGetStarted_SPring2023.pdf
Lecture11_LaravelGetStarted_SPring2023.pdf
 
Upgrading to Alfresco 6
Upgrading to Alfresco 6Upgrading to Alfresco 6
Upgrading to Alfresco 6
 
Apache Content Technologies
Apache Content TechnologiesApache Content Technologies
Apache Content Technologies
 
Let's Build an Inverted Index: Introduction to Apache Lucene/Solr
Let's Build an Inverted Index: Introduction to Apache Lucene/SolrLet's Build an Inverted Index: Introduction to Apache Lucene/Solr
Let's Build an Inverted Index: Introduction to Apache Lucene/Solr
 
Apereo OAE - Bootcamp
Apereo OAE - BootcampApereo OAE - Bootcamp
Apereo OAE - Bootcamp
 
Building Enterprise Search Engines using Open Source Technologies
Building Enterprise Search Engines using Open Source TechnologiesBuilding Enterprise Search Engines using Open Source Technologies
Building Enterprise Search Engines using Open Source Technologies
 
Building Enterprise Search Engines using Open Source Technologies
Building Enterprise Search Engines using Open Source TechnologiesBuilding Enterprise Search Engines using Open Source Technologies
Building Enterprise Search Engines using Open Source Technologies
 
Intro apache
Intro apacheIntro apache
Intro apache
 

Drupal7 and Apache Solr

  • 1. Drupal7 & Apache Solr By Nikolay Ignatov OpenSource Department Senior PHP Developer
  • 2. About me • Nikolay Ignatov • Using PHP since 2006 • Working with Drupal since 2009 • Love to learn new technologies ( PHP Libevent: http://php.net/manual/en/book.libevent.php )
  • 4. What is Apache Solr? • Open source enterprise search platform • Written in Java • Built using Lucene Core (Apache Lucene Project) • SOLR = Searching on Lucene Replication • Standalone server using Tomcat or Jetty • REST-like API
  • 5. Some Solr features • Advanced, Configurable Text Analysis • Faceted Search and Filtering • Geospatial Search • Rich Document Parsing and Indexing (PDF, Word, HTML, etc) using Apache Tika • More on http://lucene.apache.org/solr/
  • 6. Installing Apache Solr • Java 1.5 or greater installed. • A servlet container such as Tomcat, Jetty or Resin • Download Apache Solr from http://apache.skknet.net/lucene/solr/ • Follow the installation instructions from http://wiki.apache.org/solr/SolrInstall • Apache Solr contains Jetty in it
  • 7. Solr special files • Synonims.txt • Stopwords.txt • Spellings.txt
  • 8. Integrate Drupal and Solr • Modules: – http://drupal.org/project/apachesolr – http://drupal.org/project/facetapi (optional) • Copy Drupal configuration files for Apache Solr: – ../apachesolr/solr-conf/solrconfig.xml – ../apachesolr/solr-conf/schema.xml • Configure the enviorment and index content • Setup search pages
  • 9. Config + Facet • By default Solr sort by relevance so we need some setup for more relevant results • Setup the facets
  • 11. Powerful modules • http://drupal.org/project/apachesolr_views • http://drupal.org/project/apachesolr_autoc omplete • http://drupal.org/project/apachesolr_attach ments

Notas del editor

  1. Thank you very much for joining me today.My name is Nikolay Ignatov and I will speak about Drupal7 and Apache Solr integration. If you have any questions that popus during the session please write them down and we can discuss them at the end of it.Before begin, how many of you talk English? How many of you doesn’t understand english? Make a decision which language I will talk about.
  2. As I said, my name is Nikolay Ignatov and I’m working atProPeople as Senior PHP developer and team lead. I’m coding with PHP since two thousand and six. I’m working with Drupal since two thousand and nine (the year I’ve join to the ProPeople team). I love to learn new technologies and experiment with them. I’ve recently reviewed this cool lib for PHP. I’m almost sure that it will break down the Node.js because it does the same but will all power of the PHP (We can discuss this after the session because I know that there are people in the room that do not agree with me).
  3. Does anybody know what is Apache Solr (I know that a lot of ProPeople guys knows about it  )?
  4. Apache Solr is an open source enterprise search platform. It is a fast growing search engine written in Java. It is build using Lucene Core which provides Java-based indexing and search technologies. All this makes Solr a powerful standalone full-text search server within a servlet container such as Tomcat or Jetty. It has a REST-like API. You put documents in it (called "indexing") via XML, JSON or binary over HTTP. You query it via HTTP GET and receive XML, JSON, or binary results.
  5. Some features that Apache solr support: Advanced, Configurable Text AnalysisFaceted Search and Filtering – Faceted search is a technique for accessing information organized. I will show youexamples on thistwofeatures in a while. GeospatialSearch–Whatisthis? For example if you have a location content type that stores geo locations youcan index this locations in solr and afterthat to fetch for example all near by locations withoutanyspecialcalculation. All of itis made in Solr.Rich Document Parsing and indexingusing Apache Tika. You can see more nice features at Solr website.
  6. Before we can start Apache Solr we should have the following: A PC with Java 1.5 or greater. A Servlet container such as Tomcat, Jetty or Resin.If we have this on our computer we can Download Apache Solr from web page. Follow the installation instructions from Solr wiki page.We can check if the Apache Solr is setup correctly.
  7. Explain the solr special files
  8. Install the apache solr module and facetapi module.Copy the predefined Solr configuration from module directory. Configure the enviorment and index the content.
  9. Show how we can configure weights in administrationEnable and setup facets.
  10. Explain what this hooks do.
  11. Explain what this hooks do.