SOLR未定义字段布尔异常Alfresco

dxxyhpgq  于 2023-04-06  发布在  Solr
关注(0)|答案(1)|浏览(183)

我有问题与Alfresco共享5.2和solr4搜索。我做了充分的重新索引和服务器星级没有任何错误的日志。
当我尝试搜索我得到0作为结果,它不会工作,并在日志中出现此错误:

2023-03-30 08:55:11,514 ERROR [solr.core.SolrCore] [http-bio-8443-exec-25] org.apache.solr.common.SolrException: undefined field: "boolean@sd@{http://www.adama.com/model/document/1.0}documentStudyNotification" 
at org.apache.solr.schema.IndexSchema.getField(IndexSchema.java:1200) 
at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:393) 
at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:366) 
at org.apache.solr.request.SimpleFacets$2.call(SimpleFacets.java:592) 
at org.apache.solr.request.SimpleFacets$2.call(SimpleFacets.java:583) 
at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
at org.apache.solr.request.SimpleFacets$1.execute(SimpleFacets.java:537) 
at org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:608) 
at org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:264) 
at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:107) 
at org.apache.solr.handler.component.AlfrescoSearchHandler.handleRequestBody(AlfrescoSearchHandler.java:319) 
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) 
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1976) 
at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:777) 
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418) 
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 
at org.alfresco.web.scripts.servlet.X509ServletFilterBase.doFilter(X509ServletFilterBase.java:144) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218) 
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110) 
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506) 
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) 
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) 
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) 
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445) 
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115) 
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637) 
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 
at java.lang.Thread.run(Thread.java:748)

可能是什么问题?我应该在我的solr配置中改变一些东西吗?

vnjpjtjt

vnjpjtjt1#

我猜这或多或少是你在SO(12)上创建其他问题的相同问题。
看起来你删除了仍然被引用的模型。
alfresco solr tracker总是在启动时从存储库中请求可用的模型。因此,您要么在运行的solr示例上删除了缓存的模型,要么从alfresco存储库中删除了模型/模块(adama),尽管存储库中仍然有引用此模型的节点。
一个技术性的修复是重新索引,不索引在仓库中没有定义的元数据 *,但是 * 你可能想把模型放回仓库配置中,因为Alfresco中仍然有节点引用http://www.adama.com/model/document/1.0模型。一旦模型回到你的仓库中,solr跟踪器将在下次重启时检索它。

相关问题