You are here

function apachesolr_attachments_search in Apache Solr Attachments 5

Same name and namespace in other branches
  1. 6 apachesolr_attachments.module \apachesolr_attachments_search()
  2. 6.2 apachesolr_attachments.module \apachesolr_attachments_search()

Implementation of hook_search().

File

./apachesolr_attachments.module, line 71
Provides a file attachment search implementation for use with the Apache Solr module

Code

function apachesolr_attachments_search($op = 'search', $keys = NULL) {
  switch ($op) {
    case 'name':

      // We dont want a tab
      return '';
    case 'reset':
      ApacheSolrUpdate::reset(SOLR_ATTACHMENT_NS);
      return;
    case 'status':

      // Figure out a way to know how many are left to update, or expose it as part of the apachesolr module
      return;
    case 'search':
      return apachesolr_search_search($op, $keys);
  }
}