OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.38k stars 1.12k forks source link

search setting error #2496

Open orchardbot opened 12 years ago

orchardbot commented 12 years ago

infofromca created: https://orchard.codeplex.com/workitem/18669

under setttings, click search, it show checkboxes for body..., one of them is a perproty 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, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.<>cDisplayClass15.b12() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>cDisplayClass15.<>cDisplayClass17.b__14() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)

orchardbot commented 12 years ago

infofromca commented:

http://orchard.codeplex.com/discussions/355391

orchardbot commented 12 years ago

@sebastienros commented:

Can you repro the issue and detail the steps ? (with very specific field types and names) Thanks

orchardbot commented 12 years ago

infofromca commented:

it is string Address property of my own class HiddenMapPart ( also HiddenMapPartRecord )

orchardbot commented 12 years ago

@sebastienros commented:

I can't repro. I changed the checked element and could not trigger this exception. I will need more detailed steps in order to fix it.