I want to restrict the suggestions for Apache Solr Search with hook_apachesolr_suggestions_alter(&$suggestions, $env_id)
. I have gone through the code and found the suggestion is prompt from apachesolr_autocomplete_suggest_word_completion()
called by a menu callback.
How can I override the suggestion block? I do not want to block indexing the words but just to hide them from suggestions.
Is there any hook available? Is hook_apachesolr_suggesstions_alter(&$suggestions,$env_id)
useful in this case?
I am using hook_apachesolr_querry_alter(DrupalSolrQueryInterface $query)
;
I want to skip the parameters from the query. Is there any way to do this?