|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.facet.example.simple.SimpleSearcher
public class SimpleSearcher
SampleSearcer searches index with facets.
Constructor Summary | |
---|---|
SimpleSearcher()
|
Method Summary | |
---|---|
static List<FacetResult> |
searchWithDrillDown(org.apache.lucene.index.IndexReader indexReader,
TaxonomyReader taxoReader)
Search an index with facets drill-down. |
static List<FacetResult> |
searchWithFacets(org.apache.lucene.index.IndexReader indexReader,
TaxonomyReader taxoReader)
Search an index with facets. |
static List<FacetResult> |
searchWithRequest(org.apache.lucene.index.IndexReader indexReader,
TaxonomyReader taxoReader,
FacetIndexingParams indexingParams,
FacetRequest... facetRequests)
Search an index with facets for given facet requests. |
static List<FacetResult> |
searchWithRequestAndQuery(org.apache.lucene.search.Query q,
org.apache.lucene.index.IndexReader indexReader,
TaxonomyReader taxoReader,
FacetIndexingParams indexingParams,
FacetRequest... facetRequests)
Search an index with facets for given query and facet requests. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleSearcher()
Method Detail |
---|
public static List<FacetResult> searchWithFacets(org.apache.lucene.index.IndexReader indexReader, TaxonomyReader taxoReader) throws Exception
indexReader
- index reader.taxoReader
- taxonomy reader.
Exception
- on error (no detailed exception handling here for sample simplicitypublic static List<FacetResult> searchWithRequest(org.apache.lucene.index.IndexReader indexReader, TaxonomyReader taxoReader, FacetIndexingParams indexingParams, FacetRequest... facetRequests) throws Exception
indexReader
- index reader.taxoReader
- taxonomy reader.indexingParams
- the facet indexing paramsfacetRequests
- facet requests of interest
Exception
- on error (no detailed exception handling here for sample simplicitypublic static List<FacetResult> searchWithRequestAndQuery(org.apache.lucene.search.Query q, org.apache.lucene.index.IndexReader indexReader, TaxonomyReader taxoReader, FacetIndexingParams indexingParams, FacetRequest... facetRequests) throws Exception
q
- query of interestindexReader
- index reader.taxoReader
- taxonomy reader.indexingParams
- the facet indexing paramsfacetRequests
- facet requests of interest
Exception
- on error (no detailed exception handling here for sample simplicitypublic static List<FacetResult> searchWithDrillDown(org.apache.lucene.index.IndexReader indexReader, TaxonomyReader taxoReader) throws Exception
indexReader
- index reader.taxoReader
- taxonomy reader.
Exception
- on error (no detailed exception handling here for sample simplicity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |