Class FacetResult (2.0.0)

public final class FacetResult implements Serializable

Represents a facet result computed from an extended search result set. A facet result contains a name, a type, and a set of values. Name is a single facet name and each value has a label and a count. The value label can be a single facet value name, or a range label (in "[start,end)" format).

Inheritance

java.lang.Object > FacetResult

Implements

Serializable

Static Methods

newBuilder()

public static FacetResult.Builder newBuilder()
Returns
Type Description
FacetResult.Builder

Methods

getName()

public String getName()

Name of this facet result that is a single facet name.

Returns
Type Description
String

name as string

getValues()

public List<FacetResultValue> getValues()

The list of facet values computed during search. Each value result has a label, count, and refinement token.

Returns
Type Description
List<FacetResultValue>

an unmodifiable list of values

toString()

public String toString()
Returns
Type Description
String
Overrides