21 August 2013

The default site search has various limitations, especially when there is a vast amount of content with diverse applications. When products, blog posts, promotional content and member content all appears within a search, the results are challenging to wade through. Even to get to that point, Drupal builds an enormous table in the database. Backing up that data and rebuilding the index have both created problems in my specific use case. To address these problems (and some other shortcomings), I installed the Facet API and Solr modules.

Now, a user can specify whether they are looking for products or blog posts, the results come with spelling suggestions, and the results are lightning-fast. The Lucene index (that powers Solr) is easy to optimize and backup using Amazon EBS snapshots. Solr's JSON API opens new integration and web services possibilities.

It is all very exciting, and I dare say that it was foolish to wait so long to install. Especially if you run Ubuntu, the installation is trivial. I have included all of the references I used during installation below. Good luck!

References

  1. Configure Solr on Ubuntu, the quickest way ยท sunspot/sunspot Wiki
  2. UpdateJSON - Solr Wiki
  3. Facet API | drupal.org
  4. Apache Solr Search Integration (Module) | drupal.org
  5. Apache Solr Search Integration (Documentation) | drupal.org
  6. Troubleshooting Solr | drupal.org
  7. Apache Solr Exclude Node | drupal.org
Technologies:


blog comments powered by Disqus