|Constructor and Description|
Creates a new facet extractor with the given
|Modifier and Type||Method and Description|
public DistinctValuesFacetExtractor(String propertyRelPath, String valueFilter, Predicate predicateTemplate, String valueParameterName)
valueFilter. The values for this facet are based on the property values referenced by
predicateTemplatemust be given which for each detected bucket will be cloned and filled with the specific value of the bucket; the value will be placed in the parameter of the predicate given by
propertyRelPath- a relative path that points to a property. The relative path is based on the path of the result nodes.
valueFilter- a regular expression to only select property values matching the expression and add each matching group as one value or
nullto use the property value(s) as is.
predicateTemplate- the predicate template, which will be cloned and filled with the specific value for each bucket
valueParameterName- name of the parameter in the
predicateTemplateto set with the value for the bucket
public Facet getFacet()
FacetExtractor.handleNode(Node)was called for each node in the result) to retrieve the final
Facetobject. Please note that this might be called without
FacetExtractor.handleNode(Node)ever being called, if the result was empty.
Facetinterface with all buckets found in the result or
nullif nothing was found in the result
"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"