Stay organized with collections
Save and categorize content based on your preferences.
publicfinalclassFacetResultimplementsSerializable
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).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003e\u003ccode\u003eFacetResult\u003c/code\u003e is a class representing a facet result from an extended search, containing a name, type, and values.\u003c/p\u003e\n"],["\u003cp\u003eEach value within \u003ccode\u003eFacetResult\u003c/code\u003e has a label and a count, which may be a single facet value name or a range label.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetName()\u003c/code\u003e method returns the single facet name associated with this facet result as a string.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetValues()\u003c/code\u003e returns an unmodifiable list of \u003ccode\u003eFacetResultValue\u003c/code\u003e, where each value has a label, count, and refinement token.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003enewBuilder()\u003c/code\u003e provides a static method for creating a \u003ccode\u003eFacetResult.Builder\u003c/code\u003e instance, and it inherits several methods from the \u003ccode\u003eObject\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,["# Class FacetResult (2.0.0)\n\n public final class FacetResult implements Serializable\n\nRepresents a facet result computed from an extended search result set. A facet result contains\na name, a type, and a set of values. Name is a single facet name and each value has a label and\na count. The value label can be a single facet value name, or a range label\n(in \"\\[start,end)\" format). \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e FacetResult \n\nImplements\n----------\n\n[Serializable](https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html) \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Methods\n--------------\n\n### newBuilder()\n\n public static FacetResult.Builder newBuilder()\n\nMethods\n-------\n\n### getName()\n\n public String getName()\n\nName of this facet result that is a single facet name.\n\n### getValues()\n\n public List\u003cFacetResultValue\u003e getValues()\n\nThe list of facet values computed during search. Each value\nresult has a label, count, and refinement token.\n\n### toString()\n\n public String toString()\n\n**Overrides** \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--)"]]