[[["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-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eFacetQueryChecker\u003c/code\u003e class provides validation for query options related to faceted search operations.\u003c/p\u003e\n"],["\u003cp\u003eStatic methods within \u003ccode\u003eFacetQueryChecker\u003c/code\u003e ensure that parameters like facet depth, discovery limits, and value limits fall within allowed ranges, as defined by \u003ccode\u003eSearchApiLimits\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes methods to validate various aspects of facet search, such as \u003ccode\u003echeckDepth\u003c/code\u003e, \u003ccode\u003echeckDiscoveryLimit\u003c/code\u003e, \u003ccode\u003echeckDiscoveryValueLimit\u003c/code\u003e, \u003ccode\u003echeckFacetValue\u003c/code\u003e, \u003ccode\u003echeckValueLimit\u003c/code\u003e and \u003ccode\u003echeckValid\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003echeckValid\u003c/code\u003e method can validate all the faceted search related parameters given the \u003ccode\u003eSearchParams\u003c/code\u003e argument.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFacetQueryChecker\u003c/code\u003e class inherits members from the Java \u003ccode\u003eObject\u003c/code\u003e class, such as \u003ccode\u003eclone\u003c/code\u003e, \u003ccode\u003eequals\u003c/code\u003e, and \u003ccode\u003etoString\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Class FacetQueryChecker (2.0.0)\n\n public final class FacetQueryChecker\n\nProvides checks for faceted search related query options. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e FacetQueryChecker \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### checkDepth(Integer value)\n\n public static Integer checkDepth(Integer value)\n\nChecks that a facet depth option is valid. The facet depth must\nbe greater than 0 and less than [SearchApiLimits#FACET_MAXIMUM_DEPTH](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.checkers.SearchApiLimits#com_google_appengine_api_search_checkers_SearchApiLimits_FACET_MAXIMUM_DEPTH).\n\n### checkDiscoveryLimit(int value)\n\n public static int checkDiscoveryLimit(int value)\n\nChecks that a discovery limit is valid. The value must\nbe greater than 0 and less than [SearchApiLimits#FACET_MAXIMUM_DISCOVERY_LIMIT](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.checkers.SearchApiLimits#com_google_appengine_api_search_checkers_SearchApiLimits_FACET_MAXIMUM_DISCOVERY_LIMIT).\n\n### checkDiscoveryValueLimit(Integer value)\n\n public static Integer checkDiscoveryValueLimit(Integer value)\n\nChecks whether discovery value limit option is valid. The discovery value limit must\nbe greater than 0 and less than [SearchApiLimits#FACET_MAXIMUM_VALUE_LIMIT](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.checkers.SearchApiLimits#com_google_appengine_api_search_checkers_SearchApiLimits_FACET_MAXIMUM_VALUE_LIMIT).\n\n### checkFacetValue(String value)\n\n public static String checkFacetValue(String value)\n\nChecks that a value constraint is valid. The Value length must\nbe at least 1 and less than [SearchApiLimits#MAXIMUM_ATOM_LENGTH](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.checkers.SearchApiLimits#com_google_appengine_api_search_checkers_SearchApiLimits_MAXIMUM_ATOM_LENGTH).\n\n### checkValid(SearchServicePb.SearchParams params)\n\n public static SearchServicePb.SearchParams checkValid(SearchServicePb.SearchParams params)\n\nChecks whether all options related to faceted search are valid.\n\n### checkValueLimit(Integer value)\n\n public static Integer checkValueLimit(Integer value)\n\nChecks whether a value limit option is valid. The value limit must\nbe greater than 0 and less than [SearchApiLimits#FACET_MAXIMUM_VALUE_LIMIT](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.checkers.SearchApiLimits#com_google_appengine_api_search_checkers_SearchApiLimits_FACET_MAXIMUM_VALUE_LIMIT)."]]