org.apache.lucene.facet.enhancements.params
Class DefaultEnhancementsIndexingParams
java.lang.Object
org.apache.lucene.facet.index.params.DefaultFacetIndexingParams
org.apache.lucene.facet.index.params.PerDimensionIndexingParams
org.apache.lucene.facet.enhancements.params.DefaultEnhancementsIndexingParams
- All Implemented Interfaces:
- Serializable, EnhancementsIndexingParams, FacetIndexingParams
public class DefaultEnhancementsIndexingParams
- extends PerDimensionIndexingParams
- implements EnhancementsIndexingParams
Default implementation of EnhancementsIndexingParams
- See Also:
- Serialized Form
- WARNING: This API is experimental and might change in incompatible ways in the next release.
DefaultEnhancementsIndexingParams
public DefaultEnhancementsIndexingParams(CategoryEnhancement... enhancements)
- Construct with a certain
enhancement
- Throws:
IllegalArgumentException - if no enhancements are provided
DefaultEnhancementsIndexingParams
public DefaultEnhancementsIndexingParams(CategoryListParams categoryListParams,
CategoryEnhancement... enhancements)
- Construct with certain
enhancements
and CategoryListParams
- Throws:
IllegalArgumentException - if no enhancements are provided
addCategoryEnhancements
public void addCategoryEnhancements(CategoryEnhancement... enhancements)
- Description copied from interface:
EnhancementsIndexingParams
- Add
CategoryEnhancements to the indexing parameters
- Specified by:
addCategoryEnhancements in interface EnhancementsIndexingParams
- Parameters:
enhancements - enhancements to add
getCategoryEnhancements
public List<CategoryEnhancement> getCategoryEnhancements()
- Description copied from interface:
EnhancementsIndexingParams
- Get a list of the active category enhancements. If no enhancements exist
return
null. The order of enhancements in the returned list
dictates the order in which the enhancements data appear in the category
tokens payload.
- Specified by:
getCategoryEnhancements in interface EnhancementsIndexingParams
- Returns:
- A list of the active category enhancements, or
null if
there are no enhancements.
getRetainableProperties
public List<Class<? extends CategoryProperty>> getRetainableProperties()
- Description copied from interface:
EnhancementsIndexingParams
- Get a list of
CategoryProperty classes to be retained when
creating CategoryParentsStream.
- Specified by:
getRetainableProperties in interface EnhancementsIndexingParams
- Returns:
- the list of
CategoryProperty classes to be retained when
creating CategoryParentsStream, or null if there
are no such properties.
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.