Package org.apache.lucene.demo.facet
Class SimpleFacetsExample
- java.lang.Object
-
- org.apache.lucene.demo.facet.SimpleFacetsExample
-
public class SimpleFacetsExample extends Object
Shows simple usage of faceted indexing and search.
-
-
Constructor Summary
Constructors Constructor Description SimpleFacetsExample()Empty constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)Runs the search and drill-down examples and prints the results.FacetResultrunDrillDown()Runs the drill-down example.List<FacetResult>runDrillSideways()Runs the drill-sideways example.List<FacetResult>runFacetOnly()Runs the search example.List<FacetResult>runSearch()Runs the search example.
-
-
-
Constructor Detail
-
SimpleFacetsExample
public SimpleFacetsExample()
Empty constructor
-
-
Method Detail
-
runFacetOnly
public List<FacetResult> runFacetOnly() throws IOException
Runs the search example.- Throws:
IOException
-
runSearch
public List<FacetResult> runSearch() throws IOException
Runs the search example.- Throws:
IOException
-
runDrillDown
public FacetResult runDrillDown() throws IOException
Runs the drill-down example.- Throws:
IOException
-
runDrillSideways
public List<FacetResult> runDrillSideways() throws IOException
Runs the drill-sideways example.- Throws:
IOException
-
-