Exemplo n.º 1
0
 /// <summary>
 /// Ajax call that is responsible for handling the help whisperer list generated under the search bar.
 /// Directly calls Search engine to retrive simpler version of search.
 /// </summary>
 /// <param name="query">Query that is the subject of the search</param>
 /// <returns>Array of the resulted whispered items</returns>
 public string[] QueryAutoComplete(string query)
 {
     // return "ahoj jak se vede".Split(' ');
     return(SearchEngine.Autocomplete(new BookRecommenderContext(), query, 10).ToArray());
 }