Package org.apache.lucene.demo.facet
Facets example code.
-
Class Summary Class Description AssociationsFacetsExample Shows example usage of category associations.CustomFacetSetExample Shows usage of indexing and searchingFacetSetsField
with a customFacetSet
implementation.CustomFacetSetExample.TemperatureOnlyFacetSetMatcher AFacetSetMatcher
which matches facet sets only by their temperature dimension, ignoring the date.CustomFacetSetExample.TemperatureReadingFacetSet AFacetSet
which encodes a temperature reading in a date (long) and degrees (celsius; float).DistanceFacetsExample Shows simple usage of dynamic range faceting, using the expressions module to calculate distance.ExpressionAggregationFacetsExample Shows facets aggregation by an expression.MultiCategoryListsFacetsExample Demonstrates indexing categories into different indexed fields.RangeFacetsExample Shows simple usage of dynamic range faceting.SimpleFacetsExample Shows simple usage of faceted indexing and search.SimpleSortedSetFacetsExample Shows simple usage of faceted indexing and search, usingSortedSetDocValuesFacetField
andSortedSetDocValuesFacetCounts
.