Ejemplo n.º 1
0
        public IEnumerable <T> Documents <T>() where T : class
        {
            if (Hits == null || !Hits.HasAny())
            {
                return(Enumerable.Empty <T>());
            }

            return(Hits.Select(hit => hit.Source.As <T>()).ToList());
        }