[[["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\u003e\u003ccode\u003eDocumentChecker\u003c/code\u003e is a class designed to validate \u003ccode\u003ecom.google.appengine.api.search.Document\u003c/code\u003e values.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes static methods like \u003ccode\u003echeckDocumentId\u003c/code\u003e, \u003ccode\u003echeckFacetSet\u003c/code\u003e, \u003ccode\u003echeckFieldSet\u003c/code\u003e, and \u003ccode\u003echeckValid\u003c/code\u003e for different types of document checks.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003echeckDocumentId\u003c/code\u003e verifies if a given document ID is valid, adhering to rules like being non-null, ASCII printable, and not starting with '!'.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003echeckFieldSet\u003c/code\u003e ensures that a document's fields do not have the same name for number, date, or vector fields.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetNumberOfSecondsSince\u003c/code\u003e method returns the number of seconds elapsed since 2011/1/1.\u003c/p\u003e\n"]]],[],null,["# Class DocumentChecker (2.0.0)\n\n public final class DocumentChecker\n\nChecks values of a [com.google.appengine.api.search.Document](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.Document). \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e DocumentChecker \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### checkDocumentId(String documentId)\n\n public static String checkDocumentId(String documentId)\n\nChecks whether a document id is valid. A document id is a\nnon-null ASCII visible printable string of\n\nMAXIMUM_DOCUMENT_ID_LENGTH characters which does not start\n==========================================================\n\nwith '!' which is reserved for system documents.\n\n### checkFacetSet(DocumentPb.Document document)\n\n public static void checkFacetSet(DocumentPb.Document document)\n\nChecks validity of facets in document.\n\n### checkFieldSet(DocumentPb.Document document)\n\n public static void checkFieldSet(DocumentPb.Document document)\n\nChecks whether a document's field set is valid.\nA field set is valid if it does not contain any number, date, or vector fields with the same\nname.\n\n### checkValid(DocumentPb.Document pb)\n\n public static DocumentPb.Document checkValid(DocumentPb.Document pb)\n\nChecks whether a DocumentPb.Document has a valid set\nof fields.\n\n### getNumberOfSecondsSince()\n\n public static int getNumberOfSecondsSince()\n\nConstructors\n------------\n\n### DocumentChecker()\n\n public DocumentChecker()"]]