Package org.apache.lucene.sandbox.facet
Sandbox faceting - Collectors that compute facets. Facet Ordinals/Ids: Each doc may have
different facets and therefore, different facet ordinals. For example a book can have Author,
Publish Date, Page Count etc. as facets. The specific value for each of these Facets for a book
can be mapped to an ordinal. Facet ordinals may be common across different book documents.
FacetCutter: Can interpret Facets of a specific type for a doc type and output all the Facet
Ordinals for the type for the doc. Facet Recorders: record data per ordinal. Some recorders may
compute aggregations and record per ordinal data aggregated across an index.
See SandboxFacetsExample for examples.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Class Summary Class Description ComparableUtils Collection of static methods to provide most common comparables for sandbox faceting.ComparableUtils.ByAggregatedValueComparable ComparableUtils.ByCountAndLongValueComparable Used forComparableUtils.byCount(CountFacetRecorder, LongValueFacetCutter)
result.ComparableUtils.ByCountComparable ComparableUtils.ByLongValueComparable ComparableUtils.ByOrdinalComparable Used forComparableUtils.byOrdinal()
result.FacetFieldCollector Collector
that brings togetherFacetCutter
andFacetRecorder
to compute facets during collection phase.FacetFieldCollectorManager<V extends FacetRecorder> Collector manager forFacetFieldCollector
.