lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Bell <billnb...@gmail.com>
Subject Issues with Grouping
Date Tue, 28 Jun 2011 03:59:58 GMT
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 -----------------
    [junit] NOTE: reproduce with: ant test
-Dtestcase=NumFacetTermsFacetsTest
-Dtestmethod=testNumFacetTermsFacetCounts
-Dtests.seed=3921835369594659663:-3219730304883530389
    [junit] *** BEGIN
org.apache.solr.request.NumFacetTermsFacetsTest.testNumFacetTermsFacetCount
s: Insane FieldCache usage(s) ***
    [junit] SUBREADER: Found caches for descendants of
DirectoryReader(segments_3 _0(4.0):C6)+hgid_i1
    [junit] 	'DirectoryReader(segments_3 _0(4.0):C6)'=>'hgid_i1',class
org.apache.lucene.search.FieldCache$DocTermsIndex,org.apache.lucene.search.
cache.DocTermsIndexCreator@603bb3eb=>org.apache.lucene.search.cache.DocTerm
sIndexCreator$DocTermsIndexImpl#1026179434 (size =~ 372 bytes)
    [junit] 
	'org.apache.lucene.index.SegmentCoreReaders@7e8905bd'=>'hgid_i1',int,org.a
pache.lucene.search.cache.IntValuesCreator@30781822=>org.apache.lucene.sear
ch.cache.CachedArray$IntValues#291172425 (size =~ 92 bytes)
    [junit] 
    [junit] *** END
org.apache.solr.request.NumFacetTermsFacetsTest.testNumFacetTermsFacetCount
s: Insane FieldCache usage(s) ***
    [junit] ------------- ---------------- ---------------
    [junit] Testcase:
testNumFacetTermsFacetCounts(org.apache.solr.request.NumFacetTermsFacetsTes
t):	FAILED
    [junit] 
org.apache.solr.request.NumFacetTermsFacetsTest.testNumFacetTermsFacetCount
s: Insane FieldCache usage(s) found expected:<0> but was:<1>
    [junit] junit.framework.AssertionFailedError:
org.apache.solr.request.NumFacetTermsFacetsTest.testNumFacetTermsFacetCount
s: Insane FieldCache usage(s) found expected:<0> but was:<1>
    [junit] 	at 
org.apache.lucene.util.LuceneTestCase.assertSaneFieldCaches(LuceneTestCase.
java:725)
    [junit] 	at 
org.apache.lucene.util.LuceneTestCase.tearDown(LuceneTestCase.java:620)
    [junit] 	at 
org.apache.solr.SolrTestCaseJ4.tearDown(SolrTestCaseJ4.java:96)
    [junit] 	at 
org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneT
estCase.java:1430)
    [junit] 	at 
org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneT
estCase.java:1348)
    [junit] 


assertQ("check group and facet counts with numFacetTerms=1",
            req("q", "id:[1 TO 6]"
                ,"indent", "on"
                ,"facet", "true"
                ,"group", "true"
                ,"group.field", "hgid_i1"
                ,"f.hgid_i1.facet.limit", "-1"
                ,"f.hgid_i1.facet.mincount", "1"
                ,"f.hgid_i1.facet.numFacetTerms", "1"
                ,"facet.field", "hgid_i1"
                )
            ,"*[count(//arr[@name='groups'])=1]"
,"*[count(//lst[@name='facet_fields']/lst[@name='hgid_i1']/int)=1]" //
there are 1 unique items
            ,"//lst[@name='hgid_i1']/int[@name='numFacetTerms'][.='4']"
        );



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message