Indexable
Stay organized with collections
Save and categorize content based on your preferences.
Represents an indexable unit.
Indexables are not thread-safe. Do not create, modify, or access one Indexable from
different threads, otherwise a ConcurrentModificationException
could be thrown.
Constants
public static final int
MAX_BYTE_SIZE
public static final int
MAX_INDEXABLES_TO_BE_UPDATED_IN_ONE_CALL
public static final int
MAX_REPEATED_SIZE
The maximum number of elements in a repeatable Indexable
field. Additional elements will be discarded.
Constant Value: 100
public static final int
MAX_STRING_LENGTH
public static final int
MAX_URL_LENGTH
public static final String
THING
Names of the predefined Indexable
type Thing.
Constant Value: "Thing"
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eIndexable\u003c/code\u003e represents an indexable unit within the Google App Indexing API and is not thread-safe, meaning it should not be accessed from multiple threads concurrently to avoid \u003ccode\u003eConcurrentModificationException\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can construct \u003ccode\u003eIndexable\u003c/code\u003e objects using the provided \u003ccode\u003eIndexable.Builder\u003c/code\u003e class and associate metadata with them through the \u003ccode\u003eIndexable.Metadata\u003c/code\u003e interface.\u003c/p\u003e\n"],["\u003cp\u003eSeveral constants define limits for \u003ccode\u003eIndexable\u003c/code\u003e objects, including maximum byte size (\u003ccode\u003eMAX_BYTE_SIZE\u003c/code\u003e), maximum string length (\u003ccode\u003eMAX_STRING_LENGTH\u003c/code\u003e), and maximum URL length (\u003ccode\u003eMAX_URL_LENGTH\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTHING\u003c/code\u003e constant represents the predefined "Thing" type for \u003ccode\u003eIndexable\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eThere is a limit on the number of indexables that can be updated in a single call (\u003ccode\u003eMAX_INDEXABLES_TO_BE_UPDATED_IN_ONE_CALL\u003c/code\u003e), and a limit on the number of elements in a repeatable field (\u003ccode\u003eMAX_REPEATED_SIZE\u003c/code\u003e).\u003c/p\u003e\n"]]],["`Indexable` represents an indexable unit, which is not thread-safe. Use `Indexable.Builder` to create them and `Indexable.Metadata` for metadata. Key limits include: `MAX_BYTE_SIZE` (30000), `MAX_INDEXABLES_TO_BE_UPDATED_IN_ONE_CALL` (1000), `MAX_REPEATED_SIZE` (100), `MAX_STRING_LENGTH` (20000), and `MAX_URL_LENGTH` (256). The `THING` constant value is \"Thing\", representing the predefined `Indexable` type. Exceeding these limits will lead to discarded or truncated data.\n"],null,[]]