コード例 #1
0
        public virtual IDocumentQueue GetDocumentQueue(string indexName)
        {
            IDocumentQueue documentQueue;

            if (!documentQueues.TryGetValue(indexName, out documentQueue))
            {
                var writer = GetIndexWriter(indexName);
                documentQueue = new DocumentQueue(writer);
                documentQueues.TryAdd(indexName, documentQueue);
            }
            return(documentQueue);
        }
コード例 #2
0
 public override void OnCompleted()
 {
     DocumentQueue.PushDocument(document);
 }
コード例 #3
0
 public virtual IDocumentQueue GetDocumentQueue( string indexName )
 {
     IDocumentQueue documentQueue;
     if ( !documentQueues.TryGetValue( indexName, out documentQueue ) )
     {
         var writer = GetIndexWriter( indexName );
         documentQueue = new DocumentQueue( writer );
         documentQueues.TryAdd( indexName, documentQueue );
     }
     return documentQueue;
 }