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()) {