private IEnumerable <ISearchResult> CreateSearchResults(SearchResults <SearchResultItem> results)
 {
     return(results.Hits.Select(h => SearchResultFactory.Create(h.Document)).ToArray());
 }
 private IEnumerable <ISearchResult> CreateSearchResults <T>(SearchResults <T> results) where T : SearchResultItem
 {
     return(results.Hits.Select(h => SearchResultFactory.Create(h.Document)).Where(x => x != null).ToList());
 }