Interface EnhancementsIndexingParams
-
- All Superinterfaces:
FacetIndexingParams,Serializable
- All Known Implementing Classes:
DefaultEnhancementsIndexingParams
public interface EnhancementsIndexingParams extends FacetIndexingParams
Facet indexing parametersfor definingcategory enhancements. It must contain at least one enhancement, otherwise nothing is "enhanced" about it. When there are more than one, the order matters - seegetCategoryEnhancements().- See Also:
EnhancementsDocumentBuilder- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCategoryEnhancements(CategoryEnhancement... enhancements)AddCategoryEnhancements to the indexing parametersList<CategoryEnhancement>getCategoryEnhancements()Get a list of the active category enhancements.List<Class<? extends CategoryProperty>>getRetainableProperties()Get a list ofCategoryPropertyclasses to be retained when creatingCategoryParentsStream.-
Methods inherited from interface org.apache.lucene.facet.index.params.FacetIndexingParams
drillDownTermText, getAllCategoryListParams, getCategoryListParams, getFacetDelimChar, getOrdinalPolicy, getPartitionSize, getPathPolicy
-
-
-
-
Method Detail
-
addCategoryEnhancements
void addCategoryEnhancements(CategoryEnhancement... enhancements)
AddCategoryEnhancements to the indexing parameters- Parameters:
enhancements- enhancements to add
-
getCategoryEnhancements
List<CategoryEnhancement> getCategoryEnhancements()
Get a list of the active category enhancements. If no enhancements exist returnnull. The order of enhancements in the returned list dictates the order in which the enhancements data appear in the category tokens payload.- Returns:
- A list of the active category enhancements, or
nullif there are no enhancements.
-
getRetainableProperties
List<Class<? extends CategoryProperty>> getRetainableProperties()
Get a list ofCategoryPropertyclasses to be retained when creatingCategoryParentsStream.- Returns:
- the list of
CategoryPropertyclasses to be retained when creatingCategoryParentsStream, ornullif there are no such properties.
-
-