Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Drupal7 and Apache Solr


Published on

A quick brief of integration between Apache Solr and Drupal 7

  • Be the first to comment

Drupal7 and Apache Solr

  1. 1. Drupal7 & Apache Solr By Nikolay Ignatov OpenSource Department Senior PHP Developer
  2. 2. About me• Nikolay Ignatov• Using PHP since 2006• Working with Drupal since 2009• Love to learn new technologies ( PHP Libevent: )
  3. 3. What is Apache Solr?
  4. 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. 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
  6. 6. Installing Apache Solr• Java 1.5 or greater installed.• A servlet container such as Tomcat, Jetty or Resin• Download Apache Solr from• Follow the installation instructions from• Apache Solr contains Jetty in it
  7. 7. Solr special files• Synonims.txt• Stopwords.txt• Spellings.txt
  8. 8. Integrate Drupal and Solr• Modules: – – (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. 9. Config + Facet• By default Solr sort by relevance so we need some setup for more relevant results• Setup the facets
  10. 10. Useful hooks• hook_apachesolr_index_documents_alter• hook_apachesolr_query_alter
  11. 11. Powerful modules•• omplete• ments
  12. 12. THANK YOU! Questions ?