コード例 #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void insert(java.util.List<Object> data) throws java.io.IOException
        private void Insert(IList <object> data)
        {
            for (int i = 0; i < data.Count; i++)
            {
                Document doc = LuceneDocumentStructure.documentRepresentingProperties(i, Values.of(data[i]));
                _writer.addDocument(doc);
            }
            _searcherManager.maybeRefreshBlocking();
        }
コード例 #2
0
 public override void Flush()
 {
     try
     {
         _searcherManager.maybeRefreshBlocking();
     }
     catch (IOException e)
     {
         throw new Exception(e);
     }
 }