Home / Taxonomy term

ApacheSolr

Use Apache Solr to search in files

Robert Douglass's picture

Drupal's file handling capabilities keep getting better. Beyond the core upload module, the filefield module for CCK has enabled us to build sites with all sorts of files; documents, images, music, videos, and so forth. Searching within these docuements, however, has never been a common feature on Drupal sites. Some solutions have existed, particularly for extracting texts from PDFs and common wordprocessing documents. With Apache Solr, the attachments module, and an extension library called Tika, things can be much better. With Tika you can extract texts not only from Microsoft Office, Open Office, and PDF documents, you can also get text and metadata from images, songs, Flash movies and zipped archives. Searching for these texts is done as part of the normal Apache Solr driven site search.

The S-Files: Adding a custom sort to Acquia Search (Apache Solr)

Robert Douglass's picture

Tech Support Case Studies

We've received several inquiries about adding custom sorts to the the sorting block on search results for our popular Acquia Search product. This is fortunately quite easy, though it currently involves preparing a custom module that implements one hook:
hook_apachesolr_prepare_query(&$query)

<?php
  
function hook_apachesolr_prepare_query(&$query) {
    
// You can get the 'solr_field_name' from q=admin/reports/apachesolr
    
$query->set_available_sort('solr_field_name', array(
      
// how the sort link is to appear in the sorts block
      
'title' => t('Name of sort'),
      
'default' => 'asc', // or 'desc'
     
));
   }
?>

Views 3 + Apache Solr + Acquia Drupal = The Future of Search

Robert Douglass's picture

For the last six months, Scott Reynolds has been keeping a big juicy secret. As the maintainer of the Apache Solr Views module, he knows just how cool the future of Drupal Search is going to be. His module, based on an idea and code from Thomas Seidl, lets you make custom searches against the Solr index the same way you currently make views against the MySQL database.

ApacheSolr search presentation from Do it With Drupal

Robert Douglass's picture

Last week Acquia sent me to New Orleans to be a speaker at Lullabot's Do it With Drupal conference. The conference went very well and I gave a presentation about ApacheSolr, and how faceted search will change the way you think about finding things on your site. Since Acquia recently announced that we will be launching a hosted Solr search service even more people have shown interest in ApacheSolr.

Hosted Solr site search for Drupal is on the way

Jay Batson's picture

The search technology area is highly important to people with websites. As a result, I've spent serious time looking at it. Several things have come from this time spent:

  • The important thing: We'll soon be adding "hosted site search" capabilities to the Acquia Network for our subscribers. More about this below.

Acquia Upgrade Team: Mission Copenhagen

Robert Douglass's picture

Acquia documentation agent Jam* and I will be heading to Denmark this weekend where we'll be geeking out with Scandanavian Drupallers at the first ever DrupalCamp Copenhagen. You will recognize us by our Acquia shirts and our inability to speak Danish. Our mission is to help you upgrade your Drupal 4 or 5 sites to Drupal 6.

Pages