Class GeoIndexDefinition

  • All Implemented Interfaces:
    com.ibm.cloud.sdk.core.service.model.ObjectModel

    public class GeoIndexDefinition
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    Schema for a geospatial index definition.
    • Method Detail

      • index

        public String index()
        Gets the index. String form of a JavaScript function that is called for each document in the database. The function takes the document as a parameter, extracts some geospatial data from it, and then calls the `st_index` function to index that data. The `st_index` takes a GeoJSON geometry as a parameter.
        Returns:
        the index