public static AutocompleteResult AutoComplete(this IProviderSearchContext context, AzureSuggestQuery q, string suggeterName, AutocompleteParameters options)
        {
            ICloudSearchIndex index = context.Index as CloudSearchProviderSuggestionIndex;

            Assert.IsNotNull(index, "index");
            return(((CompositeSearchService)index.SearchService).Autocomplete(q, suggeterName, options));
        }
        public static DocumentSuggestResult <Document> Suggest(this IProviderSearchContext context, AzureSuggestQuery q, string suggeterName, SuggestParameters options)
        {
            ICloudSearchIndex index = context.Index as CloudSearchProviderSuggestionIndex;

            Assert.IsNotNull(index, "index");
            return(((CompositeSearchService)index.SearchService).Suggest(q, suggeterName, options));
        }