DatastoreNeedIndexException is thrown when no matching index was found for a query
requiring an index. Check the Indexes page in the Admin Console and your datastore-indexes.xml
file.
[[["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-03-05 UTC."],[[["`DatastoreNeedIndexException` is thrown when a query lacks a required index."],["Check the Admin Console's Indexes page and the `datastore-indexes.xml` file to resolve this exception."],["The `DatastoreNeedIndexException` class has two constructors for creating instances, one with a message, the other with a message and a cause."],["`getMessage()` retrieves the exception's message and is an override of the parent `Throwable` class method."],["`getMissingIndexDefinitionXml()` can be used to retrieve the xml defining the missing index, if available."]]],[]]