Monday, June 4, 2012

Error Trying to Publish Item: no segments* file found: files

You may get an error simimar to the one below:

Exception Type: System.IO.FileNotFoundException
Message: no segments* file found: files:
Source: Telerik.Search

Stack Trace:
at Telerik.Lucene.Net.Index.IndexWriter.Init(Directory d, Analyzer a, Boolean create, Boolean closeDir)
at Telerik.Lucene.Net.Index.IndexWriter..ctor(String path, Analyzer a, Boolean create)
at Telerik.Search.Engine.Crawler.GetIndexWriter(String indexName, Boolean createIndex)
at Telerik.Search.Engine.BaseIndexer..ctor(String directory, String provider, Boolean appendToIndex)
at Telerik.Search.Engine.HtmlIndexer..ctor(String directory, String provider, Boolean appendToIndex)

If you do the solution is to delete/remove the folders located under App_Data/Search/[name_of_index]. Then, login into Sitefinity backend, go to Administration >> Services and start indexing. The removed folders with the index names and data inside should be recreated.

If this does not resolve the issue then look in the App_Data folder for the sitefinity log file. This may give a more detailed error message.

No comments:

Post a Comment