public static bool IsWebsiteRecentlyIndexed(string url)
 {
     return(EsClient.GetWebsitesByUrl(url).Count > 0);
 }
        public static string GetWebsiteIdIfAlreadyCrawled(string url)
        {
            var existingWebsite = EsClient.GetWebsitesByUrl(url);

            return(existingWebsite.Count > 0 ? existingWebsite.First().Id : null);
        }