public class RangeFacetsExample extends Object implements Closeable
| Constructor and Description |
|---|
RangeFacetsExample()
Empty constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
TopDocs |
drillDown(LongRange range)
User drills down on the specified range.
|
DrillSideways.DrillSidewaysResult |
drillSideways(LongRange range)
User drills down on the specified range, and also computes drill sideways counts.
|
void |
index()
Build the example index.
|
static void |
main(String[] args)
Runs the search and drill-down examples and prints the results.
|
FacetResult |
search()
User runs a query and counts facets.
|
public RangeFacetsExample()
public void index() throws IOException
IOExceptionpublic FacetResult search() throws IOException
IOExceptionpublic TopDocs drillDown(LongRange range) throws IOException
IOExceptionpublic DrillSideways.DrillSidewaysResult drillSideways(LongRange range) throws IOException
IOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.