Exemplo n.º 1
0
        private IndexWriter CreateIndexWriter()
        {
            CloudStorageAccount storageAccount = _azureFileService.GetCloudStorageAccount();

            const string systemAzureLuceneIndexContainerName = "SYSAzureLuceneIndexContainer";
            var          azureDir = new AzureDirectory(storageAccount, systemAzureLuceneIndexContainerName);

            var indexWriter = new IndexWriter(azureDir, new StandardAnalyzer(Lucene.Net.Util.Version.LUCENE_30), true,
                                              new IndexWriter.MaxFieldLength(IndexWriter.DEFAULT_MAX_FIELD_LENGTH));

            return(indexWriter);
        }