Contains information about the kinds of document Fields
which are supported by the Index.
// Get the searchService for the default namespaceSearchServicesearchService=SearchServiceFactory.getSearchService();// Get the first page of indexes available and retrieve schemasGetResponse<Index>response=searchService.getIndexes(GetIndexesRequest.newBuilder().setSchemaFetched(true).build());// List out elements of Schemafor(Indexindex:response){Schemaschema=index.getSchema();for(StringfieldName:schema.getFieldNames()){List<FieldType>typesForField=schema.getFieldTypes(fieldName);}}
[[["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."],[[["The `Schema` class provides information about the types of document `Fields` supported by an `Index`."],["You can retrieve the names of the fields supported in a schema using the `getFieldNames()` method."],["The `getFieldTypes(String fieldName)` method allows you to get a list of supported `FieldType` for a given field name."],["A new `Schema` builder can be created using the `newBuilder()` static method."],["The `Schema` class inherits several methods from the `Object` class, including `equals()`, `hashCode()`, and `toString()`, which are overridden to give them specific behaviors."]]],[]]