Example #1
0
        public virtual bool IsUpToDate(Uri uri)
        {
            if (uri == null)
            {
                return(false);
            }

            LuceneAccess.StoredInfo info = indexer.Lucene.GetStoredInfo(uri);

            // Remove this uri from the cache
            if (stored_cache != null)
            {
                stored_cache.Remove(uri.ToString());
            }

            // Check if this time is "older" than the time we began to index and if the index
            // status has changed (partial vs. full indexing)
            if (info != null && ThunderbirdQueryable.IndexingStart.CompareTo(info.LastIndex) < 0 &&
                FullIndex == info.FullyIndexed)
            {
                return(true);
            }

            return(false);
        }
Example #2
0
            private bool MatchesDate(Uri uri)
            {
                LuceneAccess.StoredInfo info = lucene.GetStoredInfo(uri);

                try {
                    if (!info.Equals(end_date) && info.LastIndex.CompareTo(end_date) < 0)
                    {
                        return(false);
                    }
                } catch {}

                return(true);
            }