code cleaning
This commit is contained in:
@@ -159,7 +159,7 @@ function materio_search_api_results_search(){
|
||||
}
|
||||
else if(user_access('use materio search api')){
|
||||
// dsm('normal search');
|
||||
// switch index depending on key words type full text or taxonomy term (autocomplete selection)
|
||||
# switch index depending on key words type full text or taxonomy term (autocomplete selection)
|
||||
$searchmode = isset($user->data['materiosearchapi_searchmode']) ? $user->data['materiosearchapi_searchmode'] : "fulltext";
|
||||
switch($searchmode){
|
||||
case "fulltext":
|
||||
@@ -180,13 +180,13 @@ function materio_search_api_results_search(){
|
||||
}
|
||||
|
||||
if(!user_access('use materio search api advanced search') && !user_access('use materio search api')){
|
||||
// potential results index for anonymous and free user
|
||||
# potential results index for anonymous and free user
|
||||
$could_index_machine_name = variable_get('mainsearchindex_'.$language->language, -1);
|
||||
$could_index = search_api_index_load($index_machine_name);
|
||||
}
|
||||
|
||||
if ($typed) {
|
||||
// TODO: cache the results with cache graceful : http://drupal.org/project/cache_graceful
|
||||
# TODO: cache the results with cache graceful : http://drupal.org/project/cache_graceful
|
||||
try {
|
||||
|
||||
# retrieve viewmode and then use it to define the query range
|
||||
|
||||
Reference in New Issue
Block a user