[[["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-07 UTC."],[[["\u003cp\u003eThis class, \u003ccode\u003eFacetOptions.Builder\u003c/code\u003e, is used to construct \u003ccode\u003eFacetOptions\u003c/code\u003e objects, which are used in search operations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ebuild()\u003c/code\u003e method returns an immutable \u003ccode\u003eFacetOptions\u003c/code\u003e object reflecting the current builder state.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esetDepth(int value)\u003c/code\u003e method controls how many documents are analyzed during the facet discovery process.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esetDiscoveryLimit(int value)\u003c/code\u003e method lets you specify the number of facets to discover, while the \u003ccode\u003esetDiscoveryValueLimit(int value)\u003c/code\u003e allows you to specify the maximum amount of values per facet.\u003c/p\u003e\n"]]],[],null,["# Class FacetOptions.Builder (2.0.0)\n\n public static final class FacetOptions.Builder\n\nBuilder for [FacetOptions](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.FacetOptions). \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e FacetOptions.Builder \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\nMethods\n-------\n\n### build()\n\n public FacetOptions build()\n\nReturns an immutable [FacetOptions](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.FacetOptions) that reflects the current state of this Builder.\n\n### setDepth(int value)\n\n public FacetOptions.Builder setDepth(int value)\n\nSets the number of documents from the search result to be analyzed for facet discovery.\n\n### setDiscoveryLimit(int value)\n\n public FacetOptions.Builder setDiscoveryLimit(int value)\n\nSets the number of facets to be discovered.\n\n### setDiscoveryValueLimit(int value)\n\n public FacetOptions.Builder setDiscoveryValueLimit(int value)\n\nSets the maximum number of values each discovered facet should have."]]