JPress社区

后台配置文章搜索使用Lucene报错

...

shengyu

org.apache.lucene.index.IndexNotFoundException: no segments* file found in MMapDirectory@D:\eyesmoons\jpress\starter\target\classes~\indexes lockFactory=org.apache.lucene.store.NativeFSLockFactory@3acbd195: files: []
at org.apache.lucene.index.SegmentInfosFindSegmentsFile.run(SegmentInfos.java:683)atorg.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:81)atorg.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:63)atio.jpress.module.article.searcher.LuceneSearcher.search(LuceneSearcher.java:104)atio.jpress.module.article.searcher.LuceneSearcherFindSegmentsFile.run(SegmentInfos.java:683)atorg.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:81)atorg.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:63)atio.jpress.module.article.searcher.LuceneSearcher.search(LuceneSearcher.java:104)atio.jpress.module.article.searcher.LuceneSearcherEnhancerByCGLIBEnhancerByCGLIB7703f949.CGLIB7703f949.CGLIBsearch0()atio.jpress.module.article.searcher.LuceneSearcher0()atio.jpress.module.article.searcher.LuceneSearcherEnhancerByCGLIBEnhancerByCGLIB7703f9497703f949FastClassByCGLIBFastClassByCGLIB11136f7e.invoke()atnet.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)atcom.jfinal.aop.Invocation.invoke(Invocation.java:84)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:78)atio.jboot.components.limiter.LimiterInterceptor.doProcess(LimiterInterceptor.java:59)atio.jboot.components.limiter.LimiterInterceptor.intercept(LimiterInterceptor.java:40)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:75)atio.jboot.aop.interceptor.cache.JbootCacheInterceptor.intercept(JbootCacheInterceptor.java:43)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:75)atio.jboot.aop.interceptor.cache.JbootCachePutInterceptor.intercept(JbootCachePutInterceptor.java:39)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:75)atio.jboot.aop.interceptor.cache.JbootCachesEvictInterceptor.intercept(JbootCachesEvictInterceptor.java:43)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:75)atio.jboot.aop.interceptor.cache.JbootCacheEvictInterceptor.intercept(JbootCacheEvictInterceptor.java:37)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:75)atio.jboot.aop.JbootAopInterceptor.intercept(JbootAopInterceptor.java:26)atcom.jfinal.aop.Invocation.invoke(Invocation.java:69)atcom.jfinal.aop.Callback.intercept(Callback.java:96)atio.jpress.module.article.searcher.LuceneSearcher11136f7e.invoke()atnet.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)atcom.jfinal.aop.Invocation.invoke(Invocation.java:84)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:78)atio.jboot.components.limiter.LimiterInterceptor.doProcess(LimiterInterceptor.java:59)atio.jboot.components.limiter.LimiterInterceptor.intercept(LimiterInterceptor.java:40)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:75)atio.jboot.aop.interceptor.cache.JbootCacheInterceptor.intercept(JbootCacheInterceptor.java:43)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:75)atio.jboot.aop.interceptor.cache.JbootCachePutInterceptor.intercept(JbootCachePutInterceptor.java:39)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:75)atio.jboot.aop.interceptor.cache.JbootCachesEvictInterceptor.intercept(JbootCachesEvictInterceptor.java:43)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:75)atio.jboot.aop.interceptor.cache.JbootCacheEvictInterceptor.intercept(JbootCacheEvictInterceptor.java:37)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:75)atio.jboot.aop.JbootAopInterceptor.intercept(JbootAopInterceptor.java:26)atcom.jfinal.aop.Invocation.invoke(Invocation.java:69)atcom.jfinal.aop.Callback.intercept(Callback.java:96)atio.jpress.module.article.searcher.LuceneSearcherEnhancerByCGLIBEnhancerByCGLIB7703f949.search()atio.jpress.module.article.service.provider.ArticleServiceProvider.search(ArticleServiceProvider.java:198)atio.jpress.module.article.service.provider.ArticleServiceProvider7703f949.search()atio.jpress.module.article.service.provider.ArticleServiceProvider.search(ArticleServiceProvider.java:198)atio.jpress.module.article.service.provider.ArticleServiceProviderEnhancerByCGLIBEnhancerByCGLIBd1fb0e75.CGLIBd1fb0e75.CGLIBsearch6()atio.jpress.module.article.service.provider.ArticleServiceProvider6()atio.jpress.module.article.service.provider.ArticleServiceProviderEnhancerByCGLIBEnhancerByCGLIBd1fb0e75d1fb0e75FastClassByCGLIBFastClassByCGLIBa4890db.invoke()atnet.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)atcom.jfinal.aop.Invocation.invoke(Invocation.java:84)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:78)atio.jboot.components.limiter.LimiterInterceptor.doProcess(LimiterInterceptor.java:59)atio.jboot.components.limiter.LimiterInterceptor.intercept(LimiterInterceptor.java:40)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:75)atio.jboot.aop.interceptor.cache.JbootCacheInterceptor.intercept(JbootCacheInterceptor.java:43)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:75)atio.jboot.aop.interceptor.cache.JbootCachePutInterceptor.intercept(JbootCachePutInterceptor.java:39)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:75)atio.jboot.aop.interceptor.cache.JbootCachesEvictInterceptor.intercept(JbootCachesEvictInterceptor.java:43)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:75)atio.jboot.aop.interceptor.cache.JbootCacheEvictInterceptor.intercept(JbootCacheEvictInterceptor.java:37)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:75)atio.jboot.aop.JbootAopInterceptor.intercept(JbootAopInterceptor.java:26)atcom.jfinal.aop.Invocation.invoke(Invocation.java:69)atcom.jfinal.aop.Callback.intercept(Callback.java:96)atio.jpress.module.article.service.provider.ArticleServiceProvidera4890db.invoke()atnet.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)atcom.jfinal.aop.Invocation.invoke(Invocation.java:84)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:78)atio.jboot.components.limiter.LimiterInterceptor.doProcess(LimiterInterceptor.java:59)atio.jboot.components.limiter.LimiterInterceptor.intercept(LimiterInterceptor.java:40)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:75)atio.jboot.aop.interceptor.cache.JbootCacheInterceptor.intercept(JbootCacheInterceptor.java:43)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:75)atio.jboot.aop.interceptor.cache.JbootCachePutInterceptor.intercept(JbootCachePutInterceptor.java:39)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:75)atio.jboot.aop.interceptor.cache.JbootCachesEvictInterceptor.intercept(JbootCachesEvictInterceptor.java:43)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:75)atio.jboot.aop.interceptor.cache.JbootCacheEvictInterceptor.intercept(JbootCacheEvictInterceptor.java:37)atio.jboot.aop.JbootAopInvocation.invoke(JbootAopInvocation.java:75)atio.jboot.aop.JbootAopInterceptor.intercept(JbootAopInterceptor.java:26)atcom.jfinal.aop.Invocation.invoke(Invocation.java:69)atcom.jfinal.aop.Callback.intercept(Callback.java:96)atio.jpress.module.article.service.provider.ArticleServiceProviderEnhancerByCGLIBEnhancerByCGLIBd1fb0e75.search()atio.jpress.module.article.directive.ArticleSearchPageDirective.onRender(ArticleSearchPageDirective.java:55)atio.jboot.web.directive.base.JbootDirectiveBase.exec(JbootDirectiveBase.java:50)atcom.jfinal.template.stat.ast.StatList.exec(StatList.java:68)atcom.jfinal.template.stat.ast.Define.call(Define.java:105)atcom.jfinal.template.stat.ast.Call.exec(Call.java:49)atcom.jfinal.template.stat.ast.StatList.exec(StatList.java:68)atcom.jfinal.template.stat.ast.Define.call(Define.java:105)atcom.jfinal.template.stat.ast.Call.exec(Call.java:49)atcom.jfinal.template.stat.ast.StatList.exec(StatList.java:68)atcom.jfinal.template.Template.render(Template.java:79)atcom.jfinal.template.Template.renderToString(Template.java:99)atio.jpress.web.render.TemplateRender.render(TemplateRender.java:75)atio.jboot.web.handler.JbootActionHandler.handle(JbootActionHandler.java:139)atio.jboot.web.handler.JbootHandler.doHandle(JbootHandler.java:46)atio.jboot.web.handler.JbootHandler.handle(JbootHandler.java:36)atio.jboot.web.handler.JbootFilterHandler.handle(JbootFilterHandler.java:45)atio.jpress.core.addon.handler.AddonHandlerProcesserd1fb0e75.search()atio.jpress.module.article.directive.ArticleSearchPageDirective.onRender(ArticleSearchPageDirective.java:55)atio.jboot.web.directive.base.JbootDirectiveBase.exec(JbootDirectiveBase.java:50)atcom.jfinal.template.stat.ast.StatList.exec(StatList.java:68)atcom.jfinal.template.stat.ast.Define.call(Define.java:105)atcom.jfinal.template.stat.ast.Call.exec(Call.java:49)atcom.jfinal.template.stat.ast.StatList.exec(StatList.java:68)atcom.jfinal.template.stat.ast.Define.call(Define.java:105)atcom.jfinal.template.stat.ast.Call.exec(Call.java:49)atcom.jfinal.template.stat.ast.StatList.exec(StatList.java:68)atcom.jfinal.template.Template.render(Template.java:79)atcom.jfinal.template.Template.renderToString(Template.java:99)atio.jpress.web.render.TemplateRender.render(TemplateRender.java:75)atio.jboot.web.handler.JbootActionHandler.handle(JbootActionHandler.java:139)atio.jboot.web.handler.JbootHandler.doHandle(JbootHandler.java:46)atio.jboot.web.handler.JbootHandler.handle(JbootHandler.java:36)atio.jboot.web.handler.JbootFilterHandler.handle(JbootFilterHandler.java:45)atio.jpress.core.addon.handler.AddonHandlerProcesser1.handle(AddonHandlerProcesser.java:47)
at io.jpress.core.addon.handler.AddonHandlerProcesser.handle(AddonHandlerProcesser.java:41)
at io.jpress.web.handler.JPressHandler.handle(JPressHandler.java:62)
at io.jpress.core.install.InstallHandler.handle(InstallHandler.java:30)
at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:89)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
at io.undertow.servlet.handlers.FilterHandlerFilterChainImpl.doFilter(FilterHandler.java:131)atio.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)atio.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)atio.undertow.servlet.handlers.ServletChainFilterChainImpl.doFilter(FilterHandler.java:131)atio.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)atio.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)atio.undertow.servlet.handlers.ServletChain1.handleRequest(ServletChain.java:68)
at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)
at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.servlet.handlers.SessionRestoringHandler.handleRequest(SessionRestoringHandler.java:119)
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
at io.undertow.servlet.handlers.ServletInitialHandler.access100(ServletInitialHandler.java:81)atio.undertow.servlet.handlers.ServletInitialHandler100(ServletInitialHandler.java:81)atio.undertow.servlet.handlers.ServletInitialHandler2.call(ServletInitialHandler.java:138)
at io.undertow.servlet.handlers.ServletInitialHandler2.call(ServletInitialHandler.java:135)atio.undertow.servlet.core.ServletRequestContextThreadSetupAction2.call(ServletInitialHandler.java:135)atio.undertow.servlet.core.ServletRequestContextThreadSetupAction1.call(ServletRequestContextThreadSetupAction.java:48)
at io.undertow.servlet.core.ContextClassLoaderSetupAction1.call(ContextClassLoaderSetupAction.java:43)atio.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)atio.undertow.servlet.handlers.ServletInitialHandler.access1.call(ContextClassLoaderSetupAction.java:43)atio.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)atio.undertow.servlet.handlers.ServletInitialHandler.access000(ServletInitialHandler.java:81)
at io.undertow.servlet.handlers.ServletInitialHandler1.handleRequest(ServletInitialHandler.java:104)atio.undertow.server.Connectors.executeRootHandler(Connectors.java:364)atio.undertow.server.HttpServerExchange1.handleRequest(ServletInitialHandler.java:104)atio.undertow.server.Connectors.executeRootHandler(Connectors.java:364)atio.undertow.server.HttpServerExchange1.run(HttpServerExchange.java:830)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)