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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()User drills down on the specified range.drillSideways(LongRange range) User drills down on the specified range, and also computes drill sideways counts.voidindex()Build the example index.static voidRuns the search and drill-down examples and prints the results.search()User runs a query and counts facets.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
-
searchTopChildren
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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
main
Runs the search and drill-down examples and prints the results.- Throws:
Exception
-