Package | Description |
---|---|
org.apache.lucene.facet.associations |
Allows associating arbitrary values with a category.
|
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.index |
Facets indexing code.
|
org.apache.lucene.facet.params |
Facets indexing and search parameters.
|
org.apache.lucene.facet.range |
Code to compute facets for numeric ranges.
|
org.apache.lucene.facet.sampling |
Facets sampling.
|
org.apache.lucene.facet.search |
Facets search code.
|
org.apache.lucene.facet.sortedset |
Classes to perform faceting without a separate taxonomy index, using on SortedSetDocValuesField.
|
org.apache.lucene.facet.util |
Various utilities for faceted search
|
Modifier and Type | Method and Description |
---|---|
FacetsAggregator |
SumIntAssociationFacetRequest.createFacetsAggregator(FacetIndexingParams fip) |
FacetsAggregator |
SumFloatAssociationFacetRequest.createFacetsAggregator(FacetIndexingParams fip) |
Constructor and Description |
---|
AssociationsDrillDownStream(CategoryAssociationsContainer associations,
FacetIndexingParams indexingParams) |
AssociationsFacetFields(TaxonomyWriter taxonomyWriter,
FacetIndexingParams params)
Constructs a new instance with the given facet indexing params.
|
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) . |
Modifier and Type | Field and Description |
---|---|
protected FacetIndexingParams |
FacetFields.indexingParams |
Constructor and Description |
---|
CountingListBuilder(CategoryListParams categoryListParams,
FacetIndexingParams indexingParams,
TaxonomyWriter taxoWriter) |
DrillDownStream(Iterable<CategoryPath> categories,
FacetIndexingParams indexingParams) |
FacetFields(TaxonomyWriter taxonomyWriter,
FacetIndexingParams params)
Constructs a new instance with the given facet indexing params.
|
Modifier and Type | Class and Description |
---|---|
class |
PerDimensionIndexingParams
A
FacetIndexingParams that utilizes different category lists, defined
by the dimension specified by a category (see
PerDimensionIndexingParams.PerDimensionIndexingParams(Map, CategoryListParams) . |
Modifier and Type | Field and Description |
---|---|
static FacetIndexingParams |
FacetIndexingParams.DEFAULT
A
FacetIndexingParams which fixes a single
CategoryListParams with
CategoryListParams.DEFAULT_ORDINAL_POLICY . |
FacetIndexingParams |
FacetSearchParams.indexingParams |
Constructor and Description |
---|
FacetSearchParams(FacetIndexingParams indexingParams,
FacetRequest... facetRequests)
Initializes with the given
requests and
FacetIndexingParams . |
FacetSearchParams(FacetIndexingParams indexingParams,
List<FacetRequest> facetRequests)
Initializes with the given
requests and
FacetIndexingParams . |
Modifier and Type | Method and Description |
---|---|
FacetsAggregator |
RangeFacetRequest.createFacetsAggregator(FacetIndexingParams fip) |
Modifier and Type | Method and Description |
---|---|
FacetsAggregator |
Sampler.OverSampledFacetRequest.createFacetsAggregator(FacetIndexingParams fip) |
Modifier and Type | Method and Description |
---|---|
FacetsAggregator |
CountFacetRequest.createFacetsAggregator(FacetIndexingParams fip) |
FacetsAggregator |
SumScoreFacetRequest.createFacetsAggregator(FacetIndexingParams fip) |
FacetsAggregator |
SumValueSourceFacetRequest.createFacetsAggregator(FacetIndexingParams fip) |
abstract FacetsAggregator |
FacetRequest.createFacetsAggregator(FacetIndexingParams fip)
Returns the
FacetsAggregator which can aggregate the categories of
this facet request. |
static Term |
DrillDownQuery.term(FacetIndexingParams iParams,
CategoryPath path)
Return a drill-down
Term for a category. |
Constructor and Description |
---|
DrillDownQuery(FacetIndexingParams fip)
Creates a new
DrillDownQuery without a base query,
to perform a pure browsing query (equivalent to using
MatchAllDocsQuery as base). |
DrillDownQuery(FacetIndexingParams fip,
Query baseQuery)
Creates a new
DrillDownQuery over the given base query. |
PerCategoryListAggregator(Map<CategoryListParams,FacetsAggregator> aggregators,
FacetIndexingParams fip) |
Constructor and Description |
---|
SortedSetDocValuesFacetFields(FacetIndexingParams fip)
Create a
SortedSetDocValuesFacetField with the
provided CategoryPath , and custom FacetIndexingParams . |
SortedSetDocValuesReaderState(FacetIndexingParams fip,
IndexReader reader)
Create an instance, scanning the
SortedSetDocValues from the provided reader and
FacetIndexingParams . |
Modifier and Type | Method and Description |
---|---|
static Map<String,Term> |
FacetsPayloadMigrationReader.buildFieldTermsMap(Directory dir,
FacetIndexingParams fip)
A utility method for building the field-to-Term map, given the
FacetIndexingParams and the directory of the index to migrate. |
static void |
TaxonomyMergeUtils.merge(Directory srcIndexDir,
Directory srcTaxDir,
DirectoryTaxonomyWriter.OrdinalMap map,
IndexWriter destIndexWriter,
DirectoryTaxonomyWriter destTaxWriter,
FacetIndexingParams params)
Merges the given taxonomy and index directories and commits the changes to
the given writers.
|
static String |
PartitionsUtils.partitionNameByOrdinal(FacetIndexingParams iParams,
int ordinal)
Partition name by category ordinal
|
static int |
PartitionsUtils.partitionNumber(FacetIndexingParams iParams,
int ordinal)
Partition number of an ordinal.
|
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.
|
Constructor and Description |
---|
OrdinalMappingAtomicReader(AtomicReader in,
int[] ordinalMap,
FacetIndexingParams indexingParams)
Wraps an AtomicReader, mapping ordinals according to the ordinalMap,
using the provided indexingParams.
|
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.