public static Task <ISearchResponse <T> > SearchByQueryAsync <T>(this IElasticClient elasticClient, IElasticSearchQuery <T> query) where T : Entity
 {
     return(elasticClient.SearchAsync <T>(query.BuildSearchQuery));
 }
示例#2
0
        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)
 {
 }
示例#5
0
 public QueryableElasticSearchRepository(IElasticSearchQuery <TEntity> queryable, IExceptionHandler exceptionHandler)
     : base(queryable, exceptionHandler)
 {
 }