public Options() { ReindexVerb = new ReindexSubOptions(); ReindexGraphVerb = new ReindexGraphSubOptions(); AddGraphDocumentVerb = new AddGraphDocumentSubOptions(); AddDocumentVerb = new AddDocumentSubOptions(); RemoveDocumentVerb = new RemoveDocumentSubOptions(); QueryVerb = new QuerySubOptions(); }
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, }); }