Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 3539 invoked from network); 2 Sep 2010 13:33:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Sep 2010 13:33:16 -0000 Received: (qmail 82265 invoked by uid 500); 2 Sep 2010 13:33:14 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 81945 invoked by uid 500); 2 Sep 2010 13:33:10 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 81936 invoked by uid 99); 2 Sep 2010 13:33:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Sep 2010 13:33:10 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of moazzamk@gmail.com designates 74.125.82.48 as permitted sender) Received: from [74.125.82.48] (HELO mail-ww0-f48.google.com) (74.125.82.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Sep 2010 13:33:03 +0000 Received: by wwe15 with SMTP id 15so285981wwe.5 for ; Thu, 02 Sep 2010 06:32:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=WDWtz6bmcAcefO/3KiHi8qgkr4UA/SbhEOx5SXjZld0=; b=QgRA+L4chC+g/0D+pzmTXg5Y9ZuBF4zacB1/dbgLw0Fqyy9QiTPL1Xkel6azbgtMI1 WCT9rxMa6lubxqhFunxEDCEOV7uDqB+mtkGfWkxP90nXDayZUgF+WuIVqI7988rVYDal xhZAf1nyUxvah9IsUFrG7bnc7ZUtDhPTBzoHQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ibvIO2GTVkqQaOuTdn4xFwMQJlm71e2I9H/3xeqAEdQRc8ssDXmeyQZv5SG7cypkGx 8J3UOxigsbqD1jOtYdstGmOXDKCKJyM1DrgK1QEv0oxj2+QmpdLh8Q3s6RWvEME2bmDw 07IjeYIyfDrYGfkkyM7IpMqSgzKao3qwIulNA= MIME-Version: 1.0 Received: by 10.216.38.207 with SMTP id a57mr1713925web.40.1283434327975; Thu, 02 Sep 2010 06:32:07 -0700 (PDT) Received: by 10.216.5.14 with HTTP; Thu, 2 Sep 2010 06:32:06 -0700 (PDT) Date: Thu, 2 Sep 2010 08:32:06 -0500 Message-ID: Subject: Exception in Field Collapsing From: Moazzam Khan To: solr-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Hi Guys, My index contains 89k documents and I don't store some of the text fields because they are way too big. When I run a normal search without field collapsing everything works but when I enable field collapsing on the same search, it crashes with a 500 error (exception). The URL I call is this (for field collapsing): http://mk.example.com:8080/solr/Advisor/select?indent=on&version=2.2&q=*%3A*&fq=&start=0&rows=999&fl=AdvisorID&qt=standard&wt=standard&explainOther=&collapse.field=AdvisorID&collapse.type=normal&collapse.threshold=1 Below is the exception: HTTP ERROR 500 Problem accessing /solr/Advisor/select. Reason: null java.lang.NullPointerException at org.apache.solr.search.fieldcollapse.NonAdjacentDocumentCollapser$FloatValueFieldComparator.compare(NonAdjacentDocumentCollapser.java:451) at org.apache.solr.search.fieldcollapse.NonAdjacentDocumentCollapser$DocumentComparator.compare(NonAdjacentDocumentCollapser.java:263) at org.apache.solr.search.fieldcollapse.NonAdjacentDocumentCollapser$DocumentPriorityQueue.lessThan(NonAdjacentDocumentCollapser.java:197) at org.apache.lucene.util.PriorityQueue.insertWithOverflow(PriorityQueue.java:148) at org.apache.solr.search.fieldcollapse.NonAdjacentDocumentCollapser.doCollapsing(NonAdjacentDocumentCollapser.java:114) at org.apache.solr.search.fieldcollapse.AbstractDocumentCollapser.executeCollapse(AbstractDocumentCollapser.java:259) at org.apache.solr.search.fieldcollapse.AbstractDocumentCollapser.collapse(AbstractDocumentCollapser.java:179) at org.apache.solr.handler.component.CollapseComponent.doProcess(CollapseComponent.java:173) at org.apache.solr.handler.component.CollapseComponent.process(CollapseComponent.java:127) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:195) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1322) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228) Does anyone know why this is happening? Is there any other patch I can try that will do this same thing without any errors? Thanks in advance, Moazzam