Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BBF1D62F6 for ; Tue, 28 Jun 2011 12:45:02 +0000 (UTC) Received: (qmail 72521 invoked by uid 500); 28 Jun 2011 12:45:01 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 72406 invoked by uid 500); 28 Jun 2011 12:45:00 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 72399 invoked by uid 99); 28 Jun 2011 12:45:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jun 2011 12:45:00 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.220.176] (HELO mail-vx0-f176.google.com) (209.85.220.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jun 2011 12:44:54 +0000 Received: by vxd2 with SMTP id 2so155730vxd.35 for ; Tue, 28 Jun 2011 05:44:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.73.163 with SMTP id m3mr1802383vdv.244.1309265071943; Tue, 28 Jun 2011 05:44:31 -0700 (PDT) Received: by 10.52.157.226 with HTTP; Tue, 28 Jun 2011 05:44:31 -0700 (PDT) In-Reply-To: References: Date: Tue, 28 Jun 2011 08:44:31 -0400 Message-ID: Subject: Re: Issues with Grouping From: Michael McCandless To: dev@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Bill, Can you open an issue and make a patch showing the problem? Thanks. The test is failing only from the FC insanity? Or is there another exception (you mentioned NPE but I don't see it). Mike Mike McCandless http://blog.mikemccandless.com On Mon, Jun 27, 2011 at 11:59 PM, Bill Bell wrote: > The trunk has issues with grouping (NPE). I get this with or without > f.hgid_i1.facet.numFacetTerms", "1"... > > > I think it has to do with a NPE in group in 4.0 it fails on other code. > Thoughts? > > [junit] ------------- Standard Error ----------------- > =A0 =A0[junit] NOTE: reproduce with: ant test > -Dtestcase=3DNumFacetTermsFacetsTest > -Dtestmethod=3DtestNumFacetTermsFacetCounts > -Dtests.seed=3D3921835369594659663:-3219730304883530389 > =A0 =A0[junit] *** BEGIN > org.apache.solr.request.NumFacetTermsFacetsTest.testNumFacetTermsFacetCou= nt > s: Insane FieldCache usage(s) *** > =A0 =A0[junit] SUBREADER: Found caches for descendants of > DirectoryReader(segments_3 _0(4.0):C6)+hgid_i1 > =A0 =A0[junit] =A0 =A0 'DirectoryReader(segments_3 _0(4.0):C6)'=3D>'hgid_= i1',class > org.apache.lucene.search.FieldCache$DocTermsIndex,org.apache.lucene.searc= h. > cache.DocTermsIndexCreator@603bb3eb=3D>org.apache.lucene.search.cache.Doc= Term > sIndexCreator$DocTermsIndexImpl#1026179434 (size =3D~ 372 bytes) > =A0 =A0[junit] > =A0 =A0 =A0 =A0'org.apache.lucene.index.SegmentCoreReaders@7e8905bd'=3D>'= hgid_i1',int,org.a > pache.lucene.search.cache.IntValuesCreator@30781822=3D>org.apache.lucene.= sear > ch.cache.CachedArray$IntValues#291172425 (size =3D~ 92 bytes) > =A0 =A0[junit] > =A0 =A0[junit] *** END > org.apache.solr.request.NumFacetTermsFacetsTest.testNumFacetTermsFacetCou= nt > s: Insane FieldCache usage(s) *** > =A0 =A0[junit] ------------- ---------------- --------------- > =A0 =A0[junit] Testcase: > testNumFacetTermsFacetCounts(org.apache.solr.request.NumFacetTermsFacetsT= es > t): =A0 =A0 FAILED > =A0 =A0[junit] > org.apache.solr.request.NumFacetTermsFacetsTest.testNumFacetTermsFacetCou= nt > s: Insane FieldCache usage(s) found expected:<0> but was:<1> > =A0 =A0[junit] junit.framework.AssertionFailedError: > org.apache.solr.request.NumFacetTermsFacetsTest.testNumFacetTermsFacetCou= nt > s: Insane FieldCache usage(s) found expected:<0> but was:<1> > =A0 =A0[junit] =A0 =A0 at > org.apache.lucene.util.LuceneTestCase.assertSaneFieldCaches(LuceneTestCas= e. > java:725) > =A0 =A0[junit] =A0 =A0 at > org.apache.lucene.util.LuceneTestCase.tearDown(LuceneTestCase.java:620) > =A0 =A0[junit] =A0 =A0 at > org.apache.solr.SolrTestCaseJ4.tearDown(SolrTestCaseJ4.java:96) > =A0 =A0[junit] =A0 =A0 at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(Lucen= eT > estCase.java:1430) > =A0 =A0[junit] =A0 =A0 at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(Lucen= eT > estCase.java:1348) > =A0 =A0[junit] > > > assertQ("check group and facet counts with numFacetTerms=3D1", > =A0 =A0 =A0 =A0 =A0 =A0req("q", "id:[1 TO 6]" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0,"indent", "on" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0,"facet", "true" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0,"group", "true" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0,"group.field", "hgid_i1" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0,"f.hgid_i1.facet.limit", "-1" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0,"f.hgid_i1.facet.mincount", "1" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0,"f.hgid_i1.facet.numFacetTerms", "1" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0,"facet.field", "hgid_i1" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0) > =A0 =A0 =A0 =A0 =A0 =A0,"*[count(//arr[@name=3D'groups'])=3D1]" > ,"*[count(//lst[@name=3D'facet_fields']/lst[@name=3D'hgid_i1']/int)=3D1]"= // > there are 1 unique items > =A0 =A0 =A0 =A0 =A0 =A0,"//lst[@name=3D'hgid_i1']/int[@name=3D'numFacetTe= rms'][.=3D'4']" > =A0 =A0 =A0 =A0); > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: dev-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org