You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2014/09/30 13:56:21 UTC
svn commit: r1628404 - in /lucene/dev/branches/branch_5x: ./ lucene/
lucene/demo/
lucene/demo/src/java/org/apache/lucene/demo/facet/SimpleFacetsExample.java
Author: shaie
Date: Tue Sep 30 11:56:21 2014
New Revision: 1628404
URL: http://svn.apache.org/r1628404
Log:
init new example class before each example is run
Modified:
lucene/dev/branches/branch_5x/ (props changed)
lucene/dev/branches/branch_5x/lucene/ (props changed)
lucene/dev/branches/branch_5x/lucene/demo/ (props changed)
lucene/dev/branches/branch_5x/lucene/demo/src/java/org/apache/lucene/demo/facet/SimpleFacetsExample.java
Modified: lucene/dev/branches/branch_5x/lucene/demo/src/java/org/apache/lucene/demo/facet/SimpleFacetsExample.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/demo/src/java/org/apache/lucene/demo/facet/SimpleFacetsExample.java?rev=1628404&r1=1628403&r2=1628404&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/demo/src/java/org/apache/lucene/demo/facet/SimpleFacetsExample.java (original)
+++ lucene/dev/branches/branch_5x/lucene/demo/src/java/org/apache/lucene/demo/facet/SimpleFacetsExample.java Tue Sep 30 11:56:21 2014
@@ -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()) {