The example demonstrates how to update indexes in the repository.
stringindexFolder=@"c:\MyIndex\";stringdocumentsFolder=@"c:\MyDocuments\";IndexRepositoryrepository=newIndexRepository();Indexindex=repository.Create(indexFolder);// Creating indexindex.Add(documentsFolder);// Indexing documents// Delete documents from the documents folder or modify them or add new documents to the folderrepository.Update();
The example demonstrates how to update indexes in the repository.
stringindexFolder=@"c:\MyIndex\";stringdocumentsFolder=@"c:\MyDocuments\";IndexRepositoryrepository=newIndexRepository();Indexindex=repository.Create(indexFolder);// Creating indexindex.Add(documentsFolder);// Indexing documents// Delete documents from the documents folder or modify them or add new documents to the folderUpdateOptionsoptions=newUpdateOptions();options.Threads=2;// Setting the number of indexing threadsrepository.Update(options);