io.sphere.sdk.search.FacetExpression Maven / Gradle / Ivy
package io.sphere.sdk.search;
import javax.annotation.Nullable;
/**
* Facets calculate statistical counts to aid in faceted navigation.
* Example: variants.attributes.color:"green","yellow"
* @param Type of the resource for the facet
*/
public interface FacetExpression extends SearchExpression {
/**
* Gets the path of the facet result, which is either the alias or the search path if no alias defined.
* Example: variants.attributes.color
* @return the path to access the facet result
*/
String resultPath();
/**
* Gets the defined alias.
* @return the alias of the facet
*/
@Nullable
String alias();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy