Package | Description |
---|---|
org.apache.lucene.facet.complements |
Allows to cache the total counts of categories, so that during search which
returns a large number of results (>60% of segment size), the complement set
of matching documents is counted.
|
org.apache.lucene.facet.old |
Old faceted search API, kept until complements, sampling and partitions are migrated to the new API.
|
org.apache.lucene.facet.partitions |
Category Partitions
|
org.apache.lucene.facet.sampling |
Facets sampling.
|
org.apache.lucene.facet.search |
Facets search code.
|
org.apache.lucene.facet.taxonomy |
Taxonomy of Categories
|
org.apache.lucene.facet.taxonomy.directory |
Taxonomy index implementation using on top of a Directory.
|
org.apache.lucene.facet.util |
Various utilities for faceted search
|
Modifier and Type | Method and Description |
---|---|
TotalFacetCounts |
TotalFacetCountsCache.getTotalCounts(IndexReader indexReader,
TaxonomyReader taxonomy,
FacetIndexingParams facetIndexingParams)
Get the total facet counts for a reader/taxonomy pair and facet indexing
parameters.
|
void |
TotalFacetCountsCache.load(File inputFile,
IndexReader indexReader,
TaxonomyReader taxonomy,
FacetIndexingParams facetIndexingParams)
Load
TotalFacetCounts matching input parameters from the provided
outputFile and add them into the cache for the provided indexReader,
taxonomy, and facetIndexingParams. |
void |
TotalFacetCountsCache.store(File outputFile,
IndexReader indexReader,
TaxonomyReader taxonomy,
FacetIndexingParams facetIndexingParams)
Store the
TotalFacetCounts matching input parameters into the
provided outputFile, making them available for a later call to
TotalFacetCountsCache.load(File, IndexReader, TaxonomyReader, FacetIndexingParams) . |
Constructor and Description |
---|
AdaptiveFacetsAccumulator(FacetSearchParams searchParams,
IndexReader indexReader,
TaxonomyReader taxonomyReader)
Create an
AdaptiveFacetsAccumulator |
AdaptiveFacetsAccumulator(FacetSearchParams searchParams,
IndexReader indexReader,
TaxonomyReader taxonomyReader,
FacetArrays facetArrays)
Create an
AdaptiveFacetsAccumulator |
OldFacetsAccumulator(FacetSearchParams searchParams,
IndexReader indexReader,
TaxonomyReader taxonomyReader) |
OldFacetsAccumulator(FacetSearchParams searchParams,
IndexReader indexReader,
TaxonomyReader taxonomyReader,
FacetArrays facetArrays) |
Constructor and Description |
---|
PartitionsFacetResultsHandler(TaxonomyReader taxonomyReader,
FacetRequest facetRequest,
OrdinalValueResolver resolver,
FacetArrays facetArrays) |
Constructor and Description |
---|
SamplingAccumulator(Sampler sampler,
FacetSearchParams searchParams,
IndexReader indexReader,
TaxonomyReader taxonomyReader)
Constructor...
|
SamplingAccumulator(Sampler sampler,
FacetSearchParams searchParams,
IndexReader indexReader,
TaxonomyReader taxonomyReader,
FacetArrays facetArrays) |
TakmiSampleFixer(IndexReader indexReader,
TaxonomyReader taxonomyReader,
FacetSearchParams searchParams) |
Modifier and Type | Field and Description |
---|---|
TaxonomyReader |
FacetResultsHandler.taxonomyReader |
TaxonomyReader |
TaxonomyFacetsAccumulator.taxonomyReader |
protected TaxonomyReader |
DrillSideways.taxoReader |
Modifier and Type | Method and Description |
---|---|
static FacetsCollector |
FacetsCollector.create(FacetSearchParams fsp,
IndexReader indexReader,
TaxonomyReader taxoReader)
|
static FacetsAccumulator |
FacetsAccumulator.create(FacetSearchParams fsp,
IndexReader indexReader,
TaxonomyReader taxoReader,
FacetArrays arrays)
Creates a
FacetsAccumulator for the given facet requests. |
static List<FacetResult> |
FacetResult.mergeHierarchies(List<FacetResult> results,
TaxonomyReader taxoReader,
Map<String,FacetArrays> dimArrays)
A utility for merging multiple
FacetResult of the same
(hierarchical) dimension into a single FacetResult , to reconstruct
the hierarchy. |
Constructor and Description |
---|
DepthOneFacetResultsHandler(TaxonomyReader taxonomyReader,
FacetRequest facetRequest,
FacetArrays facetArrays,
OrdinalValueResolver resolver) |
DrillSideways(IndexSearcher searcher,
TaxonomyReader taxoReader)
Create a new
DrillSideways instance, assuming the categories were
indexed with FacetFields . |
FacetResultsHandler(TaxonomyReader taxonomyReader,
FacetRequest facetRequest,
OrdinalValueResolver resolver,
FacetArrays facetArrays) |
TaxonomyFacetsAccumulator(FacetSearchParams searchParams,
IndexReader indexReader,
TaxonomyReader taxonomyReader)
Initializes the accumulator with the given search params, index reader and
taxonomy reader.
|
TaxonomyFacetsAccumulator(FacetSearchParams searchParams,
IndexReader indexReader,
TaxonomyReader taxonomyReader,
FacetArrays facetArrays)
Initializes the accumulator with the given parameters as well as
FacetArrays . |
TopKFacetResultsHandler(TaxonomyReader taxonomyReader,
FacetRequest facetRequest,
OrdinalValueResolver resolver,
FacetArrays facetArrays)
Construct top-K results handler.
|
TopKInEachNodeHandler(TaxonomyReader taxonomyReader,
FacetRequest facetRequest,
OrdinalValueResolver resolver,
FacetArrays facetArrays) |
Modifier and Type | Method and Description |
---|---|
static <T extends TaxonomyReader> |
TaxonomyReader.openIfChanged(T oldTaxoReader)
If the taxonomy has changed since the provided reader was opened, open and
return a new
TaxonomyReader ; else, return null . |
Modifier and Type | Method and Description |
---|---|
protected abstract TaxonomyReader |
TaxonomyReader.doOpenIfChanged()
Implements the actual opening of a new
TaxonomyReader instance if
the taxonomy has changed. |
Modifier and Type | Class and Description |
---|---|
class |
DirectoryTaxonomyReader
A
TaxonomyReader which retrieves stored taxonomy information from a
Directory . |
Modifier and Type | Method and Description |
---|---|
static int |
PartitionsUtils.partitionSize(FacetIndexingParams indexingParams,
TaxonomyReader taxonomyReader)
Get the partition size in this parameter, or return the size of the taxonomy, which
is smaller.
|
static void |
PrintTaxonomyStats.printStats(TaxonomyReader r,
PrintStream out,
boolean printTree) |
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.