You are here

function apachesolr_search_search in Apache Solr Search 6.3

Same name and namespace in other branches
  1. 5.2 apachesolr_search.module \apachesolr_search_search()
  2. 5 apachesolr_search.module \apachesolr_search_search()
  3. 6 apachesolr_search.module \apachesolr_search_search()
  4. 6.2 apachesolr_search.module \apachesolr_search_search()

Implements of hook_search().

File

./apachesolr_search.module, line 750
Provides a content search implementation for node content for use with the Apache Solr search application.

Code

function apachesolr_search_search($op = 'search', $keys = NULL) {
  module_load_include('inc', 'apachesolr', 'apachesolr.index');
  switch ($op) {
    case 'reset':
      $env_id = apachesolr_default_environment();
      apachesolr_index_mark_for_reindex($env_id);
      return;
    case 'status':
      $env_id = apachesolr_default_environment();
      return apachesolr_index_status($env_id);
  }

  // switch
}