function apachesolr_drupal_query in Apache Solr Search 5
Same name and namespace in other branches
- 8 apachesolr.module \apachesolr_drupal_query()
- 5.2 apachesolr.module \apachesolr_drupal_query()
- 6.3 apachesolr.module \apachesolr_drupal_query()
- 6 apachesolr.module \apachesolr_drupal_query()
- 6.2 apachesolr.module \apachesolr_drupal_query()
- 7 apachesolr.module \apachesolr_drupal_query()
12 calls to apachesolr_drupal_query()
- apachesolrlang_block in contrib/
apachesolr_lang/ apachesolrlang.module - Implementation of hook_block().
- apachesolr_block in ./
apachesolr.module - Implementation of hook_block().
- apachesolr_form_alter in ./
apachesolr.module - Implementation of hook_form_alter().
- apachesolr_multisitesearch_block in contrib/
apachesolr_multisitesearch/ apachesolr_multisitesearch.module - Implementation of hook_block().
- apachesolr_multisitesearch_search in contrib/
apachesolr_multisitesearch/ apachesolr_multisitesearch.module - Implementation of hook_search().
File
- ./
apachesolr.module, line 735 - Integration with the Apache Solr search application.
Code
function &apachesolr_drupal_query($keys = NULL, $reset = FALSE) {
static $_queries;
if ($reset) {
unset($_queries);
}
if (empty($keys)) {
$keys = search_get_keys();
}
if (empty($_queries) || empty($_queries[$keys])) {
include_once drupal_get_path('module', 'apachesolr') . '/Solr_Base_Query.php';
$_queries[$keys] = new Solr_Base_Query($keys);
}
return $_queries[$keys];
}