Has anyone figured out how to optimize the lucene index and still allow searches to be successful? All the doc I have read it seems like this is supposed to work, but it does not you wind up getting errors like:
Unhandled Exception: System.ServiceModel.FaultException`1 [System.ServiceModel.ExceptionDetail]: Unable to open Lucene IndexReader (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is: NHibernate.Search.Impl.SearchException: Unable to open Lucene IndexReader ----> System.IO.FileNotFoundException: Could not find file 'd:\SearchIndex\SearchRecord\_3quf.fnm'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at Lucene.Net.Store.FSIndexInput.Descriptor..ctor(FSIndexInput enclosingInstance, FileInfo file, FileAccess mode) at Lucene.Net.Store.FSIndexInput..ctor(FileInfo path) at Lucene.Net.Store.FSDirectory.OpenInput(String name) at Lucene.Net.Index.FieldInfos..ctor(Directory d, String name) at...). presumably because the optimizer is deleting files that it has merged and now the reader can't find them? Debugger says that IndexReader.Open is getting called which i would / assume/ is creating a new reader? Should NHIbernate.Search be using an IndexSearcher instead of a reader? Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
