|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.demo.facet.RangeFacetsExample
public class RangeFacetsExample
Shows simple usage of dynamic range faceting.
Constructor Summary | |
---|---|
RangeFacetsExample()
Empty constructor |
Method Summary | |
---|---|
void |
close()
|
TopDocs |
drillDown(LongRange range)
User drills down on the specified range. |
void |
index()
Build the example index. |
static void |
main(String[] args)
Runs the search and drill-down examples and prints the results. |
List<FacetResult> |
search()
User runs a query and counts facets. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RangeFacetsExample()
Method Detail |
---|
public void index() throws IOException
IOException
public List<FacetResult> search() throws IOException
IOException
public TopDocs drillDown(LongRange range) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
IOException
public static void main(String[] args) throws Exception
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |