|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.facet.params.FacetIndexingParams
org.apache.lucene.facet.params.PerDimensionIndexingParams
public class PerDimensionIndexingParams
A FacetIndexingParams that utilizes different category lists, defined
by the dimension specified by a category (see
PerDimensionIndexingParams(Map, CategoryListParams).
A 'dimension' is defined as the first or "zero-th" component in a
CategoryPath. For example, if a category is defined as
"Author/American/Mark Twain", then the dimension would be "Author".
| Field Summary |
|---|
| Fields inherited from class org.apache.lucene.facet.params.FacetIndexingParams |
|---|
clParams, DEFAULT, DEFAULT_CATEGORY_LIST_PARAMS, DEFAULT_FACET_DELIM_CHAR |
| Constructor Summary | |
|---|---|
PerDimensionIndexingParams(Map<CategoryPath,CategoryListParams> paramsMap)
Initializes a new instance with the given dimension-to-params mapping. |
|
PerDimensionIndexingParams(Map<CategoryPath,CategoryListParams> paramsMap,
CategoryListParams categoryListParams)
Same as PerDimensionIndexingParams(Map), only the given
CategoryListParams will be used for any dimension that is not
specified in the given mapping. |
|
| Method Summary | |
|---|---|
List<CategoryListParams> |
getAllCategoryListParams()
Returns a list of all categoryListParams that
are used for facets indexing. |
CategoryListParams |
getCategoryListParams(CategoryPath category)
Returns the CategoryListParams for the corresponding dimension
which is returned by category.getComponent(0). |
| Methods inherited from class org.apache.lucene.facet.params.FacetIndexingParams |
|---|
drillDownTermText, equals, getFacetDelimChar, getPartitionSize, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PerDimensionIndexingParams(Map<CategoryPath,CategoryListParams> paramsMap)
cp.components[0].
NOTE: for any dimension whose CategoryListParams is not
defined in the mapping, a default CategoryListParams will be used.
PerDimensionIndexingParams(Map, CategoryListParams)
public PerDimensionIndexingParams(Map<CategoryPath,CategoryListParams> paramsMap,
CategoryListParams categoryListParams)
PerDimensionIndexingParams(Map), only the given
CategoryListParams will be used for any dimension that is not
specified in the given mapping.
| Method Detail |
|---|
public List<CategoryListParams> getAllCategoryListParams()
FacetIndexingParamscategoryListParams that
are used for facets indexing.
getAllCategoryListParams in class FacetIndexingParamspublic CategoryListParams getCategoryListParams(CategoryPath category)
CategoryListParams for the corresponding dimension
which is returned by category.getComponent(0). If category
is null, or was not specified in the map given to the constructor,
returns the default CategoryListParams.
getCategoryListParams in class FacetIndexingParamsPerDimensionIndexingParams
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||