add marks to terms coming from autocompletion

This commit is contained in:
Bachir Soussi Chiadmi 2014-07-11 17:03:45 +02:00
parent 847eb41741
commit 8aabfe2592
2 changed files with 23 additions and 23 deletions

View File

@ -97,7 +97,7 @@ function materio_search_api_autocomplete_searchapi($typed = ''){
//$term_matches[$item->tid] = check_plain($item->name);
// $term_matches[check_plain($item->name)] = check_plain($item->name);
// TODO: leave tags with nodes
$term_matches[ trim(implode(' ', $adv_search_q[0]).' '.$last[1].$item->name)] = check_plain($item->name);
$term_matches[ '"'.trim(implode(' ', $adv_search_q[0]).' '.$last[1].$item->name).'"'] = check_plain($item->name);
$delta++;
if($delta > 15)