Package org.apache.lucene.demo.facet
Class RangeFacetsExample
java.lang.Object
org.apache.lucene.demo.facet.RangeFacetsExample
- All Implemented Interfaces:
Closeable
,AutoCloseable
Shows simple usage of dynamic range faceting.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
User drills down on the specified range.drillSideways
(LongRange range) User drills down on the specified range, and also computes drill sideways counts.void
index()
Build the example index.static void
Runs the search and drill-down examples and prints the results.search()
User runs a query and counts facets.
-
Constructor Details
-
RangeFacetsExample
public RangeFacetsExample()Empty constructor
-
-
Method Details
-
index
Build the example index.- Throws:
IOException
-
search
User runs a query and counts facets.- Throws:
IOException
-
drillDown
User drills down on the specified range.- Throws:
IOException
-
drillSideways
User drills down on the specified range, and also computes drill sideways counts.- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
main
Runs the search and drill-down examples and prints the results.- Throws:
Exception
-