init new example class before each example is run

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1628399 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shai Erera 2014-09-30 11:47:01 +00:00
parent 4fa6ab1d55
commit 672fc08ec3
1 changed files with 5 additions and 5 deletions

View File

@ -228,24 +228,24 @@ public class SimpleFacetsExample {
public static void main(String[] args) throws Exception {
System.out.println("Facet counting example:");
System.out.println("-----------------------");
SimpleFacetsExample example1 = new SimpleFacetsExample();
List<FacetResult> results1 = example1.runFacetOnly();
SimpleFacetsExample example = new SimpleFacetsExample();
List<FacetResult> results1 = example.runFacetOnly();
System.out.println("Author: " + results1.get(0));
System.out.println("Publish Date: " + results1.get(1));
System.out.println("Facet counting example (combined facets and search):");
System.out.println("-----------------------");
SimpleFacetsExample example = new SimpleFacetsExample();
example = new SimpleFacetsExample();
List<FacetResult> results = example.runSearch();
System.out.println("Author: " + results.get(0));
System.out.println("Publish Date: " + results.get(1));
System.out.println("\n");
example = new SimpleFacetsExample();
System.out.println("Facet drill-down example (Publish Date/2010):");
System.out.println("---------------------------------------------");
System.out.println("Author: " + example.runDrillDown());
System.out.println("\n");
example = new SimpleFacetsExample();
System.out.println("Facet drill-sideways example (Publish Date/2010):");
System.out.println("---------------------------------------------");
for(FacetResult result : example.runDrillSideways()) {