Exemplo n.º 1
0
        public Options()
        {
            ReindexVerb = new ReindexSubOptions();
            ReindexGraphVerb = new ReindexGraphSubOptions();
            AddGraphDocumentVerb = new AddGraphDocumentSubOptions();
            AddDocumentVerb = new AddDocumentSubOptions();

            RemoveDocumentVerb = new RemoveDocumentSubOptions();
            QueryVerb = new QuerySubOptions();
        }
Exemplo n.º 2
0
 private static void DoReindex(ReindexSubOptions verbSubOptions)
 {
     DirectoryInfo dirInfo = new DirectoryInfo(verbSubOptions.LuceneIndexRoot);
     dirInfo.Delete(true);
     FieldIndexSupport.CreateIndex(verbSubOptions.LuceneIndexRoot);
     DoAddDocuments(new AddDocumentSubOptions
         {
             CatalogueRepositoryRoot = verbSubOptions.CatalogueRepositoryRoot,
             DocumentFilter = verbSubOptions.DocumentFilter,
             IndexName = verbSubOptions.IndexName,
         });
 }