Package org.apache.lucene.facet.index.categorypolicy
Policies for indexing categories
There are two kinds of policies:- Path policies are based on the path of the category.
- Ordinal policies are based on the ordinal of the category.
-
Interface Summary Interface Description OrdinalPolicy Filtering category ordinals inCategoryParentsStream
, where a given category ordinal is added to the stream, and than its parents are being added one after the other usingTaxonomyWriter.getParent(int)
.PathPolicy Filtering category paths inCategoryParentsStream
, where a given category is added to the stream, and than all its parents are being added one after the other by successively removing the last component. -
Class Summary Class Description DefaultOrdinalPolicy This class filters our the ROOT category ID.DefaultPathPolicy This class filters our the ROOT category path.NonTopLevelOrdinalPolicy Filter out any "top level" category ordinals.NonTopLevelPathPolicy This class filters our the ROOT category, and it's direct descendants.