new custom entity property (term become text)
Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
@@ -206,6 +206,9 @@ function materio_search_api_results_search(){
|
||||
// dsm($filter, 'filter');
|
||||
$query->filter($filter);
|
||||
|
||||
// $query->setOption('search_api_bypass_access', true);
|
||||
$query->setOption('search_api_access_account', $user);
|
||||
|
||||
$results = $query->execute();
|
||||
|
||||
# in case of utilisateur search, run a real search to indicate how much items you could find
|
||||
@@ -233,23 +236,6 @@ function materio_search_api_results_search(){
|
||||
// $results['results'] = $accessible_results;
|
||||
// $results['result count'] = count($accessible_results);
|
||||
|
||||
|
||||
# Load spellcheck.
|
||||
// if (isset($results['search_api_spellcheck'])) {
|
||||
// $ret['results']['#spellcheck'] = array(
|
||||
// '#theme' => 'search_api_spellcheck',
|
||||
// '#spellcheck' => $results['search_api_spellcheck'],
|
||||
// // Let the theme function know where the key is stored by passing its arg
|
||||
// // number. We can work this out from the number of args in the page path.
|
||||
// '#options' => array(
|
||||
// 'arg' => array(count(arg(NULL, $page->path))),
|
||||
// ),
|
||||
// '#prefix' => '<p class="search-api-spellcheck suggestion">',
|
||||
// '#suffix' => '</p>',
|
||||
// );
|
||||
|
||||
// }
|
||||
|
||||
|
||||
|
||||
if(user_access('use materio search api')){
|
||||
|
||||
Reference in New Issue
Block a user