Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 public Task <T> QueryAsync <T>(string query)
 {
     return(_client.QueryAsync <T>(query));
 }