@@ -0,0 +1,2052 @@
+package com.pearson.entech.elasticsearch.search.facet.approx.termlist;%0A%0Aimport static org.elasticsearch.node.NodeBuilder.nodeBuilder;%0A%0Aimport java.io.IOException;%0A%0Aimport org.elasticsearch.common.settings.ImmutableSettings;%0Aimport org.elasticsearch.common.settings.Settings;%0Aimport org.elasticsearch.node.Node;%0Aimport org.junit.AfterClass;%0Aimport org.junit.Before;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0A%0A%0Apublic class TermListFacetTest %7B%0A%0A    private static Node __node;%0A    @BeforeClass%0A    public static void setUpClass() %7B%0A        %0A        %0A        %0A        System.out.println(%22test0%22);%0A    %7D%0A%0A    @AfterClass%0A    public static void tearDownClass() %7B%0A        System.out.println(%22test1%22);%0A    %7D%0A%0A    @Before%0A    public void setUp() throws IOException %7B%0A        System.out.println(%22test21%22);%0A    %7D%0A%0A    @Test%0A    public void testWithMaxOneDocPerDayBucketOnAtomicField() throws Exception %7B%0A        System.out.println(%22test2%22);%0A        %0A        %0A        %0A        %0A        try%7B%0A            System.out.println(%22test00%22);%0A            final Settings settings = ImmutableSettings.settingsBuilder()%0A                    %0A                    .put(%22node.http.enabled%22, false)%0A                    .put(%22index.gateway.type%22, %22none%22)%0A                    // Reluctantly removed this to reduce overall memory:%0A                    //.put(%22index.store.type%22, %22memory%22)%0A                    .put(%22index.number_of_shards%22, 3)%0A                    .put(%22index.number_of_replicas%22, 0)%0A                    .put(%22path.data%22, %22target%22)%0A                    .put(%22refresh_interval%22, -1)%0A                    .put(%22index.cache.field.type%22, %22soft%22)%0A                    .build();%0A            %0A            %0A            __node = nodeBuilder()%0A                    .local(true)%0A                    .settings(settings)%0A                    .clusterName(%22DistinctDateHistogramFacetTest%22)%0A                    .node();%0A            %7D%0A            catch(final Exception ex)%7B%0A                %0A                System.out.println(ex.getMessage());%0A            %7D%0A            %0A    %7D%0A%0A%7D%0A

test for term list