From 672fc08ec39b49f9f827c59c08d51bff2170409c Mon Sep 17 00:00:00 2001 From: Shai Erera Date: Tue, 30 Sep 2014 11:47:01 +0000 Subject: [PATCH] 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 --- .../apache/lucene/demo/facet/SimpleFacetsExample.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lucene/demo/src/java/org/apache/lucene/demo/facet/SimpleFacetsExample.java b/lucene/demo/src/java/org/apache/lucene/demo/facet/SimpleFacetsExample.java index d8660af7c2f..6aff3530bbe 100644 --- a/lucene/demo/src/java/org/apache/lucene/demo/facet/SimpleFacetsExample.java +++ b/lucene/demo/src/java/org/apache/lucene/demo/facet/SimpleFacetsExample.java @@ -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 results1 = example1.runFacetOnly(); + SimpleFacetsExample example = new SimpleFacetsExample(); + List 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 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()) {