Checks the search specification is valid, specifically, has a valid
index specification, a non-null query, a non-null number of documents
to return specification, a valid cursor if present, valid sort
specification list, a valid collection of field names for sorting,
and a valid scorer specification.
[[["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-03 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eQueryChecker\u003c/code\u003e class is designed to validate instances of \u003ccode\u003ecom.google.appengine.api.search.Query\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003echeckQuery\u003c/code\u003e method verifies that a given query string is not null and can be parsed successfully.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003echeckValid\u003c/code\u003e method checks that \u003ccode\u003eSearchServicePb.SearchParams\u003c/code\u003e is valid, covering aspects like index specification, query validity, and sort order.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003echeckValidFast\u003c/code\u003e method quickly validates \u003ccode\u003eSearchServicePb.SearchParams\u003c/code\u003e but omits query parsing verification for speed.\u003c/p\u003e\n"]]],[],null,["# Class QueryChecker (2.0.0)\n\n public final class QueryChecker\n\nChecks values of [com.google.appengine.api.search.Query](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.Query(class)). \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e QueryChecker \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### checkQuery(String query)\n\n public static String checkQuery(String query)\n\nChecks that query is not null and is parsable.\n\n### checkValid(SearchServicePb.SearchParams params)\n\n public static SearchServicePb.SearchParams checkValid(SearchServicePb.SearchParams params)\n\nChecks the search specification is valid, specifically, has a valid\nindex specification, a non-null query, a non-null number of documents\nto return specification, a valid cursor if present, valid sort\nspecification list, a valid collection of field names for sorting,\nand a valid scorer specification.\n\n### checkValidFast(SearchServicePb.SearchParams params)\n\n public static SearchServicePb.SearchParams checkValidFast(SearchServicePb.SearchParams params)\n\nPerforms a fast check of the search parameters. This method does not\ncheck if the query stored in the parameters parses.\n\nConstructors\n------------\n\n### QueryChecker()\n\n public QueryChecker()"]]