Hi.
I am trying to change the index by code and it's possible to add/update the index. I am a having a bit more trouble by deleting from the index.
It looks like Lucene has a function to delete using an index document... Is there a way to delete from an index?
var indexService = ServiceLocator.Current.GetInstance<IIndexService>();
var index = indexService.LoadIndex(Dynamicweb.Indexing.Repositories.RepositoryService.BaseFolder + "IndexPath");
var write = index.GetInstance().CreateWriter();
write.Open(true);
//Delete the document
write.Close();