예제 #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));
        }
예제 #2
0
 public Task <T> QueryAsync <T>(string query)
 {
     return(_client.QueryAsync <T>(query));
 }