public static Task <ISearchResponse <T> > SearchByQueryAsync <T>(this IElasticClient elasticClient, IElasticSearchQuery <T> query) where T : Entity { return(elasticClient.SearchAsync <T>(query.BuildSearchQuery)); }
public async Task <IEnumerable <Post> > SearchAsync(IElasticSearchQuery <Post> query) { var results = await _elasticClient.SearchByQueryAsync(query); return(results.Documents); }
public QueryableElasticSearchRepository(IElasticSearchQuery <TEntity> queryable) : base(queryable) { }
public QueryableElasticSearchRepository(IUnitOfWork unitOfWork, IElasticSearchQuery <TEntity> queryable) : base(unitOfWork, queryable) { }
public QueryableElasticSearchRepository(IElasticSearchQuery <TEntity> queryable, IExceptionHandler exceptionHandler) : base(queryable, exceptionHandler) { }