search settings error1.4.1

Topics: Core, General
May 11, 2012 at 1:11 AM
Edited May 11, 2012 at 4:07 PM


under setttings, click search, it show checkboxes for body..., one of them is a property of my custom part class. i ticked that, and click save. the result is all of the chechboxes dissapeared . and click search index, can see error:====================
Oops. Something went wrong ... sorry
An unhandled exception has occurred and the request was terminated. Please refresh the page. If the error persists, go back
no segments* file found in Lucene.Net.Store.SimpleFSDirectory@C:\CloudSites\453469\realestateinfoexchange.com\webroot\App_Data\Sites\Default\Indexes\Search lockFactory=Lucene.Net.Store.NativeFSLockFactory: files:
System.IO.FileNotFoundException: no segments* file found in Lucene.Net.Store.SimpleFSDirectory@C:\CloudSites\453469\realestateinfoexchange.com\webroot\App_Data\Sites\Default\Indexes\Search lockFactory=Lucene.Net.Store.NativeFSLockFactory: files: at Lucene.Net.Index.SegmentInfos.FindSegmentsFile.Run(IndexCommit commit) at Lucene.Net.Index.DirectoryReader.Open(Directory directory, IndexDeletionPolicy deletionPolicy, IndexCommit commit, Boolean readOnly, Int32 termInfosIndexDivisor) at Lucene.Net.Index.IndexReader.Open(Directory directory, Boolean readOnly) at Lucene.Services.LuceneIndexProvider.NumDocs(String indexName) at Orchard.Indexing.Services.IndexingService.Orchard.Indexing.Services.IIndexingService.GetIndexEntry(String indexName) at Orchard.Indexing.Controllers.AdminController.Index() at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)

Coordinator
May 12, 2012 at 8:52 PM

Did you try to regenerate the index? If you can't do it from the admin, you can also delete app_data\sites\default\indexes

May 14, 2012 at 3:38 PM

yes,  u r right.    

at first i should click search index n rebuild n update, then  click search n add my custom fields.

anyway, it seems  a little flaw, should disable  clicking search n add my custom fields before  clicking search index n rebuild n update

Coordinator
May 14, 2012 at 6:25 PM

Yes, please feel free to file a bug.

May 15, 2012 at 1:40 AM

 

http://orchard.codeplex.com/workitem/18669

Jun 17, 2012 at 3:42 PM

this time 1.4.2, I got error inthis way:

under setttings, click search,there is no content with only save button( it did not show checkboxes for body..., one of them is a property of my custom part class) .

I then  click search index, it show this error:

i noticed that there is "Search lockFactory=Lucene.Net.Store.NativeFSLockFactory: files:", does it means that my share host--CloudSites-- do not allow to write access?

thanks for any help.

============================

Oops. Something went wrong ... sorry

An unhandled exception has occurred and the request was terminated. Please refresh the page. If the error persists, go back

no segments* file found in Lucene.Net.Store.SimpleFSDirectory@C:\CloudSites\453469\realestateinfoexchange.com\webroot\App_Data\Sites\Default\Indexes\Search lockFactory=Lucene.Net.Store.NativeFSLockFactory: files:

System.IO.FileNotFoundException: no segments* file found in Lucene.Net.Store.SimpleFSDirectory@C:\CloudSites\453469\realestateinfoexchange.com\webroot\App_Data\Sites\Default\Indexes\Search lockFactory=Lucene.Net.Store.NativeFSLockFactory: files: at Lucene.Net.Index.SegmentInfos.FindSegmentsFile.Run(IndexCommit commit) at Lucene.Net.Index.DirectoryReader.Open(Directory directory, IndexDeletionPolicy deletionPolicy, IndexCommit commit, Boolean readOnly, Int32 termInfosIndexDivisor) at Lucene.Services.LuceneIndexProvider.NumDocs(String indexName) at Orchard.Indexing.Services.IndexingService.Orchard.Indexing.Services.IIndexingService.GetIndexEntry(String indexName) at Orchard.Indexing.Controllers.AdminController.Index() at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)

 

Jun 17, 2012 at 3:46 PM

one more, the same solution in my local computer worked just fine for everything.

Coordinator
Jun 18, 2012 at 4:34 PM

It's certainly because of write permissions which are missing. Can you have any info from the hoster ?