I have added a patch which should fix the problem. https://issues.apache.org/jira/browse/SOLR-7559
Please review. Cheers, Jeroen -----Original Message----- From: Jeroen Steggink [mailto:jeroen.stegg...@contentstrategy.nl] Sent: dinsdag 26 mei 2015 21:45 To: solr-user@lucene.apache.org Subject: RE: NPE when faceting with MLT Query from upgrade to Solr 5.1.0 Hi Tim, I just ran into the exact same problem. I see you created a bug in JIRA. I will check what is causing this and try and fix it. https://issues.apache.org/jira/browse/SOLR-7559 Jeroen -----Original Message----- From: Tim H [mailto:th98...@gmail.com] Sent: maandag 18 mei 2015 17:28 To: solr-user@lucene.apache.org Subject: NPE when faceting with MLT Query from upgrade to Solr 5.1.0 Hi everyone, Recently I upgraded to solr 5.1.0. When trying to generate facets using the more like this handler, I now get a a NullPointerException. I never got this exception while using Solr 4.10.0 Details are below: Stack Trace: at org.apache.solr.request.SimpleFacets.getHeatmapCounts(SimpleFacets.java:1555) at org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:284) at org.apache.solr.handler.MoreLikeThisHandler.handleRequestBody(MoreLikeThisHandler.java:233) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1984) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:829) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:446) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:220) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:368) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72) at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:745) Query: qt=/mlt& q=id:545dbb57b54c2403f286050e546dcdcab54cf2d074e5a2f7& mlt.mindf=5& mlt.mintf=1& mlt.minwl=3& mlt.boost=true& fq=storeid:546dcdcab54cf2d074e5a2f7& mlt.fl=overview_mlt,abstract_mlt,description_mlt,company_profile_mlt,bio_mlt& mlt.interestingTerms=details& fl=conceptid,score &sort=score desc& start=0& rows=2& facet=true& facet.field=tags& facet.field=locations& facet.mincount=1& facet.method=enum& facet.limit=-1& facet.sort=count Schema.xml(relevant parts): <field name="tags" type="string" indexed="true" stored="true" multiValued="true" /> <field name="locations" type="string" indexed="true" stored="true" multiValued="true" /> <dynamicField name="*_mlt" stored="true" indexed="true" type="text_general" termVectors="true" multiValued="true" /> solrconfig.xml(relevant parts): <requestHandler name="/mlt" class="solr.MoreLikeThisHandler" > </requestHandler>