Commands : Querying : How to work with Suggestion query?
To take advantage of a suggestion feature use the Suggest method from the commands.
SuggestionQueryResult Suggest(string index, SuggestionQuery suggestionQuery);
||A name of an index to query.
||A suggestion query definition containing all information required to query a specified index.
// Get suggestions for 'johne' using 'FullName' field in 'Users/ByFullName' index
SuggestionQueryResult result = store
Field = "FullName",
Term = "johne",
MaxSuggestions = 10
Console.WriteLine("Did you mean?");
foreach (string suggestion in result.Suggestions)
// Did you mean?