public Task <ISearchResult> SearchQueryAsync(string indexName, SearchQuery query, ISearchOptions options = default) { if (_searchClient == null) { _searchClient = new SearchClient(_configuration); } query.Index = indexName; if (options == default) { options = new SearchOptions(); } //TODO: convert options to params return(_searchClient.QueryAsync(query)); }
public Task <T> QueryAsync <T>(string query) { return(_client.QueryAsync <T>(query)); }