public override void AddToIndex(IndexItem item) {
            var key = GetKey(item.PageId, item.LanguageId);
            var pageDocument = new PageDocument(key, item);
            _collection.RemoveDocument(key);
            _collection.AddDocument(pageDocument);

            IndexingFinished();
        }
Example #2
0
        public override void AddToIndex(IndexItem item)
        {
            var key          = GetKey(item.PageId, item.LanguageId);
            var pageDocument = new PageDocument(key, item);

            _collection.RemoveDocument(key);
            _collection.AddDocument(pageDocument);

            IndexingFinished();
        }