示例#1
0
        public Task IndexAsync(Guid id, J <IndexData> data, bool onlyDraft)
        {
            var content = new TextIndexContent(indexWriter, indexSearcher, indexState, id);

            content.Index(data.Value.Data, onlyDraft);

            return(TryFlushAsync());
        }
示例#2
0
        private Task <bool> IndexInternalAsync(Update update)
        {
            var content = new TextIndexContent(indexWriter, indexState, update.Id);

            content.Index(update.Data, update.OnlyDraft);

            return(TryFlushAsync());
        }
        public Task <bool> IndexAsync(Update update)
        {
            var content = new TextIndexContent(index, indexState, update.Id);

            content.Index(update.Text, update.OnlyDraft);

            return(TryCommitAsync());
        }