API version: 0.3.0

---

# Geo indices

The intent `geo` is for the [geo types](/reference/formats-and-languages/geojson.md#supported-geometries) `point`,
`linestring`, `polygon`, `multipoint`, `multilinestring` and `multipolygon`.

| Database      | Index                                                                                                                  |
| ------------- | ---------------------------------------------------------------------------------------------------------------------- |
| MongoDB       | `2dsphere` index, named `ens_<type>_<path>_geo_<hash>`, for geometries stored in MongoDB (the default) and nested ones |
| Neo4j         | point index, for points with `"storage": "graph"`                                                                      |
| Elasticsearch | no further index, the property is mapped as `geo_point` (`point`) or `geo_shape` (all other geo types)                 |

```json
{
  "type": "point",
  "index": "geo"
}
```

The index is created by the database which stores the value. Geometries inside objects and lists are indexed by
their path, e.g. `address.location`. Geo data is searched with the geo queries of the
[Elasticsearch step](/reference/search/elasticsearch-query-dsl-mixin.md), e.g. `geo_distance`, `geo_bounding_box` or
`geo_shape`, see the [geospatial search examples](/reference/search/elasticsearch-query-dsl-mixin/geospatial-search.md).
Rules compare geometries with the [geo functions](/reference/formats-and-languages/expr-lang/geo-functions.md), which need
no index.

---

Home: [Ember Nexus API docs](/index.md)

Full site map: [llms.txt](/llms.txt)

Previous: [Vector indices](/reference/indices/vector.md)

Next: [Raw indices](/reference/indices/raw-indices.md)
