I\'m building an ASP.NET MVC site where I want to use Lucene.Net for search. I\'ve already built a SearchController and all of its methods, but I\'m getting an error at runtime
I encountered the same issue and I was using an IProviderContext. In my case I had to: Optimize,Commit and Dispose the ProviderContext.
providerContext.Optimize();
providerContext.Commit();
providerContext.Dispose();
I hope this helps. After implementing the above snippet, my index rebuilt successfully.